From 5bf119fbdd72f51895bac9cc41984e5a2bffc704 Mon Sep 17 00:00:00 2001 From: dmoka Date: Tue, 17 Oct 2023 08:43:27 +0200 Subject: [PATCH] adjust error message --- integration-tests/src/evm.rs | 2 +- runtime/hydradx/src/evm/precompiles/multicurrency.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/src/evm.rs b/integration-tests/src/evm.rs index c5ce0f6c9..8da1601f0 100644 --- a/integration-tests/src/evm.rs +++ b/integration-tests/src/evm.rs @@ -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()) }) ); diff --git a/runtime/hydradx/src/evm/precompiles/multicurrency.rs b/runtime/hydradx/src/evm/precompiles/multicurrency.rs index c8cefb6e1..eda24cff5 100644 --- a/runtime/hydradx/src/evm/precompiles/multicurrency.rs +++ b/runtime/hydradx/src/evm/precompiles/multicurrency.rs @@ -262,7 +262,7 @@ where let from: H160 = input.read::
()?.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::
()?.into();