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

Commit

Permalink
error check
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jul 28, 2023
1 parent 6014fd0 commit 655882f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cosmos/x/evm/types/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ func ProvideEthereumTransactionGetSigners() signing.CustomGetSigner {
ethTxData := msg.(*v1alpha1evm.WrappedEthereumTransaction).Data

// Get a new empty Transaction.
ethTx := txSyncPool.Get().(*coretypes.Transaction)
ethTx, ok := txSyncPool.Get().(*coretypes.Transaction)
if !ok {
return nil, errors.New("failed to get sync pool when getting signers")
}

// Fill it with the data.
if err := ethTx.UnmarshalBinary(ethTxData); err != nil {
Expand Down

0 comments on commit 655882f

Please sign in to comment.