Skip to content

Commit 1d6e1e7

Browse files
ganeshvanahallijoshuacolvin0
authored andcommitted
Bug-fix: identify already exists errors correctly while creating assertions (#3875)
1 parent 2fe5b83 commit 1d6e1e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bold/chain-abstraction/sol-implementation/assertion_chain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ func (a *AssertionChain) createAndStakeOnAssertion(
661661
})
662662
opts := a.GetCallOptsWithDesiredRpcHeadBlockNumber(&bind.CallOpts{Context: ctx})
663663
if createErr := handleCreateAssertionError(err, postState.GlobalState.BlockHash); createErr != nil {
664-
if strings.Contains(err.Error(), "already exists") {
664+
if strings.Contains(createErr.Error(), "already exists") {
665665
assertionItem, err2 := a.GetAssertion(ctx, opts, protocol.AssertionHash{Hash: computedHash})
666666
if err2 != nil {
667667
return nil, err2

0 commit comments

Comments
 (0)