-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
claravanstaden
authored and
claravanstaden
committed
Oct 19, 2023
1 parent
d42fee7
commit 389a2ee
Showing
8 changed files
with
89 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
// SPDX-FileCopyrightText: 2023 Snowfork <[email protected]> | ||
use super::*; | ||
|
||
use frame_support::dispatch::DispatchError; | ||
use snowbridge_ethereum::{Log, Receipt}; | ||
use sp_runtime::DispatchError; | ||
|
||
impl<T: Config> Verifier for Pallet<T> { | ||
/// Verify a message by verifying the existence of the corresponding | ||
|
@@ -29,7 +29,7 @@ impl<T: Config> Verifier for Pallet<T> { | |
message.proof.block_hash, | ||
err | ||
); | ||
return Err(err) | ||
return Err(err); | ||
}, | ||
}; | ||
|
||
|
@@ -48,7 +48,7 @@ impl<T: Config> Verifier for Pallet<T> { | |
message.proof.block_hash, | ||
err | ||
); | ||
return Err(Error::<T>::DecodeFailed.into()) | ||
return Err(Error::<T>::DecodeFailed.into()); | ||
}, | ||
}; | ||
|
||
|
@@ -58,7 +58,7 @@ impl<T: Config> Verifier for Pallet<T> { | |
"💫 Event log not found in receipt for transaction at index {} in block {}", | ||
message.proof.tx_index, message.proof.block_hash, | ||
); | ||
return Err(Error::<T>::InvalidProof.into()) | ||
return Err(Error::<T>::InvalidProof.into()); | ||
} | ||
|
||
log::info!( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.