-
Notifications
You must be signed in to change notification settings - Fork 10
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
[SC-456] Use generic receivers and upgrade xchain-helpers #18
Conversation
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.
One question, but other than that LGTM.
function deployCrosschainPayload(IPayload targetPayload, address bridgeReceiver) | ||
public override returns (IPayload) | ||
{ | ||
return IPayload(new OptimismCrosschainPayload(targetPayload, bridgeReceiver)); | ||
} | ||
|
||
function setUp() public { | ||
hostDomain = new Domain(getChain('mainnet')); | ||
bridgedDomain = new OptimismDomain(getChain('optimism'), hostDomain); | ||
bridge = OptimismBridgeTesting.createNativeBridge(getChain('mainnet').createFork(), getChain('optimism').createFork()); | ||
|
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.
Lets apply this formatting change to all createNativeBridge
lines just to keep lines shorter
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.
bridge = OptimismBridgeTesting.createNativeBridge( | |
getChain('mainnet').createFork(), | |
getChain('optimism').createFork() | |
); |
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.
done
Coverage after merging SC-456-use-generic-receivers into master will be
Coverage Report
|
Switch to the newest xchain-helpers repo, which restructures how bridges are worked with. There is no longer a need for per-chain receivers.