From 818ac6275aa6039a1b7a2fb9d48d313e753e0de4 Mon Sep 17 00:00:00 2001 From: beer-1 Date: Wed, 23 Oct 2024 15:43:11 +0900 Subject: [PATCH] fix to return proper error code --- x/evm/keeper/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/evm/keeper/context.go b/x/evm/keeper/context.go index 37e14de..a010cd5 100644 --- a/x/evm/keeper/context.go +++ b/x/evm/keeper/context.go @@ -263,7 +263,7 @@ func (k Keeper) EVMCallWithTracer(ctx context.Context, caller common.Address, co // evm sometimes return 0 gasRemaining, but it's not an out of gas error. if gasRemaining == 0 && err != nil && err != vm.ErrOutOfGas { - return nil, nil, types.ErrEVMCreateFailed.Wrap(err.Error()) + return nil, nil, types.ErrEVMCallFailed.Wrap(err.Error()) } // London enforced