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

[Feature Request] mpm integration-test //#package Support template parameters #3765

Open
WGB5445 opened this issue Sep 28, 2022 · 2 comments
Labels
enhancement Enhancement help wanted Extra attention is needed

Comments

@WGB5445
Copy link
Contributor

WGB5445 commented Sep 28, 2022

在测试中希望通过 package 打包 create 的地址的模块,但是在实际过程中报错Expected an address or an identifier

//# package
module {{$.call-api[0].json.dao_address}}::XDAO {
}
@WGB5445 WGB5445 added the enhancement Enhancement label Sep 28, 2022
@pause125
Copy link
Collaborator

pause125 commented Oct 7, 2022

这个似乎比较麻烦,需要在 move 编译器里面去改动?

一个替代方案,新增一个创建账号的指令:

//# create_account alice={{$.call-api[0].json.dao_address}}

//# package
module alice::XDAO {}

@jolestar
Copy link
Member

感觉应该提供一个指令,可以设置 NamedAddress 就可以

@jolestar jolestar added the help wanted Extra attention is needed label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants