Skip to content

Commit

Permalink
adjust error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoka committed Oct 17, 2023
1 parent 66eb6dc commit 5bf119f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration-tests/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ mod currency_precompile {
assert_eq!(
result,
Err(PrecompileFailure::Error {
exit_status: pallet_evm::ExitError::Other("not supported".into())
exit_status: pallet_evm::ExitError::Other("can't transfer from other than caller origin".into())
})
);

Expand Down
2 changes: 1 addition & 1 deletion runtime/hydradx/src/evm/precompiles/multicurrency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ where
let from: H160 = input.read::<Address>()?.into();
if !handle.context().caller.eq(&from) {
return Err(PrecompileFailure::Error {
exit_status: pallet_evm::ExitError::Other("not supported".into()),
exit_status: pallet_evm::ExitError::Other("can't transfer from other than caller origin".into()),
});
}
let to: H160 = input.read::<Address>()?.into();
Expand Down

0 comments on commit 5bf119f

Please sign in to comment.