Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed May 13, 2024
1 parent cc66564 commit 750b8a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/mempool/senders_with_nonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
// if tx is ethermint, it is extracted using from and nonce field
// if it's cosmos tx, default cosmos way using signatures is used
func GetSendersWithNonce(tx sdk.Tx) ([]SenderWithNonce, error) {
const extensionOptionsEthereumTxTypeUrl = "/ethermint.evm.v1.ExtensionOptionsEthereumTx"
const extensionOptionsEthereumTxTypeURL = "/ethermint.evm.v1.ExtensionOptionsEthereumTx"
if txWithExtensions, ok := tx.(authante.HasExtensionOptionsTx); ok {
opts := txWithExtensions.GetExtensionOptions()
if len(opts) > 0 && opts[0].GetTypeUrl() == extensionOptionsEthereumTxTypeUrl {
if len(opts) > 0 && opts[0].GetTypeUrl() == extensionOptionsEthereumTxTypeURL {
for _, msg := range tx.GetMsgs() {
if ethMsg, ok := msg.(*evmtypes.MsgEthereumTx); ok {
return []SenderWithNonce{
Expand Down

0 comments on commit 750b8a4

Please sign in to comment.