Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ccip 2063 find tx from seqnum #724

Closed
wants to merge 6 commits into from

Conversation

AnieeG
Copy link
Contributor

@AnieeG AnieeG commented Apr 16, 2024

Motivation

Solution

Copy link
Contributor

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset.

Copy link
Contributor

@winder winder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic looks good, but I'm not sure what the plan is for the go-ethereum dependency. Might be better to put this in ccip-scripts

Comment on lines +11 to +13
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the evm dependency is going away, it might be better to put this command in ccip-scripts

seqNumsInput := flag.String("seqnums", "", "Enter sequence numbers separated by comma (e.g., 1,2,3)")
onRampAddress := flag.String("onRamp", "", "Enter on-ramp address")
startBlock := flag.Uint64("startblock", 0, "Enter start block as starting block num to look for txs")
rpcURL := flag.String("rpc", "", "Enter RPC endpoint")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also use chainID and resolve the URL with the environment variable.

Comment on lines +80 to +82
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be nice to print out if any were missing

Suggested change
}
}
}
}
delete(seqNumbers, sendRequested.Event.Message.SequenceNumber)
}
}
if len(seqNumbers) != 0 {
log.Warnf("Unable to find some sequence numbers were not found: %v", maps.Keys(seqNumbers))
}

@AnieeG AnieeG closed this May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants