mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Add selector collisions to the IERC20 lib
This commit is contained in:
13
processor/ethereum/erc20/src/tests.rs
Normal file
13
processor/ethereum/erc20/src/tests.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use alloy_sol_types::SolCall;
|
||||
|
||||
#[test]
|
||||
fn selector_collisions() {
|
||||
assert_eq!(
|
||||
crate::abi::IERC20::transferCall::SELECTOR,
|
||||
crate::abi::SeraiIERC20::transferWithInInstruction01BB244A8ACall::SELECTOR
|
||||
);
|
||||
assert_eq!(
|
||||
crate::abi::IERC20::transferFromCall::SELECTOR,
|
||||
crate::abi::SeraiIERC20::transferFromWithInInstruction00081948E0Call::SELECTOR
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user