Skip to content

Commit

Permalink
In simulate.go StateAtBlock, if association err, just continue
Browse files Browse the repository at this point in the history
  • Loading branch information
jewei1997 committed Nov 19, 2024
1 parent dcc4ac3 commit 6dc3289
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions evmrpc/simulate.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,14 +381,16 @@ func (b *Backend) StateAtBlock(ctx context.Context, block *ethtypes.Block, reexe
fmt.Println("DEBUG: In simulate.go: StateAtBlock: !associated")
seiAddr, associatedNow := b.keeper.GetSeiAddress(b.ctxProvider(LatestCtxHeight), msg.From)
if !associatedNow {
fmt.Println("DEBUG: In simulate.go: StateAtBlock: !associatedNow")
fmt.Println("DEBUG: In simulate.go: StateAtBlock: !associatedNow, continuing")
err := types.NewAssociationMissingErr(msg.From.Hex())
metrics.IncrementAssociationError("state_at_block", err)
return nil, emptyRelease, err
continue
// return nil, emptyRelease, err
}
if err := helpers.NewAssociationHelper(b.keeper, b.keeper.BankKeeper(), b.keeper.AccountKeeper()).AssociateAddresses(statedb.Ctx(), seiAddr, msg.From, nil); err != nil {
fmt.Println("DEBUG: In simulate.go: StateAtBlock: AssociateAddresses error", err)
return nil, emptyRelease, err
fmt.Println("DEBUG: In simulate.go: StateAtBlock: AssociateAddresses error", err, "continuing")
continue
// return nil, emptyRelease, err
}
}
}
Expand Down

0 comments on commit 6dc3289

Please sign in to comment.