Skip to content

Commit f3dc927

Browse files
Merge pull request #3878 from OffchainLabs/port-3875
Port Bug-fix: identify already exists errors correctly while creating assertions (#3875)
2 parents 0623d69 + 1d6e1e7 commit f3dc927

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)