Skip to content

Commit

Permalink
const EIP1271_MAGIC_VALUE
Browse files Browse the repository at this point in the history
  • Loading branch information
37ng committed Apr 2, 2024
1 parent 0302cf4 commit 5a6371f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmtp_id/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crate::bindings::coinbase_smart_wallet::CoinbaseSmartWallet;
use anyhow::Error;

const BASE_SEPOLIA_RPC_URL: &str = "https://sepolia.base.org";
const EIP1271_MAGIC_VALUE: [u8; 4] = [0x16, 0x26, 0xba, 0x7e];

pub struct ERC1271Verifier {
pub provider: Arc<Provider<Http>>,
Expand Down Expand Up @@ -41,7 +42,6 @@ impl ERC1271Verifier {
.await?
.into();

// check if response is magic value
Ok(res == [0x16, 0x26, 0xba, 0x7e])
Ok(res == EIP1271_MAGIC_VALUE)
}
}

0 comments on commit 5a6371f

Please sign in to comment.