Skip to content

Commit

Permalink
refactor: modify ApplyContract to return result even on EVM execution…
Browse files Browse the repository at this point in the history
… failure
  • Loading branch information
zakir-code committed Jan 10, 2025
1 parent c944d46 commit 94e909f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions x/evm/keeper/contract_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,5 @@ func (k *Keeper) ApplyContract(ctx context.Context, from, contract common.Addres
if err != nil {
return nil, err
}
resp, err := k.callEvm(sdk.UnwrapSDKContext(ctx), from, &contract, value, nonce, data, true)
if err != nil {
return nil, err
}
return resp, nil
return k.callEvm(sdk.UnwrapSDKContext(ctx), from, &contract, value, nonce, data, true)
}

0 comments on commit 94e909f

Please sign in to comment.