From 6dc32898fc1441f5958bb93fbf4fe46ee541e141 Mon Sep 17 00:00:00 2001 From: Jeremy Wei Date: Tue, 19 Nov 2024 14:52:54 -0500 Subject: [PATCH] In simulate.go StateAtBlock, if association err, just continue --- evmrpc/simulate.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/evmrpc/simulate.go b/evmrpc/simulate.go index 0273272771..ba7de81afe 100644 --- a/evmrpc/simulate.go +++ b/evmrpc/simulate.go @@ -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 } } }