Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Roznovjak committed Feb 19, 2024
1 parent f69e03e commit ffe0780
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/hydradx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ impl_runtime_apis! {
_ => (None, None),
};

// don't allow calling EVM RPC or Runtime API from a bound address
if EVMAccounts::bound_account_id(from).is_some() {
return Err(pallet_evm_accounts::Error::<Runtime>::BoundAddressCannotBeUsed.into())
};
Expand Down

0 comments on commit ffe0780

Please sign in to comment.