-
Notifications
You must be signed in to change notification settings - Fork 4
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
[OR-1470] change wton to wnativetoken #93
[OR-1470] change wton to wnativetoken #93
Conversation
@nguyenzung |
@@ -145,7 +145,7 @@ contract Deploy is Deployer { | |||
/// @notice Deploy the Safe | |||
function deployL2NativeToken() public onlyDevnet broadcast { | |||
address addr_ = getL2NativeToken(); | |||
cfg.setNativeTokenAddress(addr_); | |||
cfg.setNativeTokenAddress(addr_, string.concat(vm.projectRoot(), "/deploy-config/", deploymentContext, ".json")); |
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.
This function only works for devnet with the modifier onlyDevnet. I think we maybe should update this function to work with deploymentContext.
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.
Thank you!
I forgot to explain!
This function is to change the nativeTokenAddress of devnetl1.json to the actually distributed address. (Currently, the address set in the template goes to devnetL1.json.)
I think this should only work on devnet. 🙇🏼♂️
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.
Thank you very much!
I understood.
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.
Great job, Steven 💯
f1422a2
into
OR-1257-Update-smart-contracts-for-deposit-TON-in-L1
Thank you!