Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-nguy committed Jul 26, 2021
1 parent eec45d9 commit baaae15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions x/evm/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (

ethermint "github.com/tharsis/ethermint/types"
"github.com/tharsis/ethermint/x/evm/types"
evmtypes "github.com/tharsis/ethermint/x/evm/types"
)

var _ types.QueryServer = Keeper{}
Expand Down Expand Up @@ -492,7 +491,7 @@ func (k Keeper) EstimateGas(c context.Context, req *types.EthCallRequest) (*type
if failed {
if result != nil && result.VmError != vm.ErrOutOfGas.Error() {
if result.VmError == vm.ErrExecutionReverted.Error() {
return nil, evmtypes.NewExecErrorWithReason(result.Ret)
return nil, types.NewExecErrorWithReason(result.Ret)
}
return nil, status.Error(codes.Internal, result.VmError)
}
Expand Down
2 changes: 1 addition & 1 deletion x/evm/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ func (e *revertError) ErrorCode() int {
// ErrorData returns the hex encoded revert reason.
func (e *revertError) ErrorData() interface{} {
return e.reason
}
}

0 comments on commit baaae15

Please sign in to comment.