Add selector collisions to the IERC20 lib

This commit is contained in:
Luke Parker
2025-01-23 08:22:41 -05:00
parent 7e53eff642
commit e922264ebf
4 changed files with 47 additions and 4 deletions

View 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
);
}