-
Notifications
You must be signed in to change notification settings - Fork 34
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
Conversation
I see you updated files related to |
There was a problem hiding this 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
"github.com/ethereum/go-ethereum/accounts/abi/bind" | ||
"github.com/ethereum/go-ethereum/common" | ||
"github.com/ethereum/go-ethereum/ethclient" |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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.
} | ||
} | ||
} |
There was a problem hiding this comment.
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
} | |
} | |
} | |
} | |
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)) | |
} |
Motivation
Solution