-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Teleporter test cases - part 1 #104
Conversation
// | ||
|
||
optsA := utils.CreateTransactorOpts(ctx, subnetAInfo, fundedAddress, fundedKey) | ||
_, tx, subnetAExampleMessenger, err := examplecrosschainmessenger.DeployExampleCrossChainMessenger(optsA, subnetAInfo.ChainRPCClient, subnetAInfo.TeleporterRegistryAddress) |
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.
Do we want to move contract deployment to utils? so that it can be re-used.
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.
Good call. We use this contract frequently to test Teleporter edge cases, so it makes sense to have this a widely available utility. I've added this in.
fundedKey, | ||
teleporterContractAddress, | ||
) | ||
utils.SendTransactionAndWaitForAcceptance(ctx, subnetBInfo.ChainWSClient, subnetBInfo.ChainRPCClient, signedTx, true) |
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.
do we want to use abi binding to call RetryMessageExecution
directly?
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.
Good call, fixed now
Why this should be merged
Implements the following test cases from #94
Also implements the ExampleCrossChainMessenger integration test in Ginkgo. This is already implemented in bash, but all bash tests will eventually be ported to Ginkgo. This partially addresses #27
Ports a handful of E2E utility changes from #40
How this works
See above
How this was tested
New E2E test cases
How is this documented
N/A