Skip to content

能否将 metadata 与合约实现合并成同一个 package? #5

Answered by varabot
varabot asked this question in Q&A
Discussion options

You must be logged in to vote

不能

因为合约的编译脚本 build.rs 执行先于合约 package 的编译,它又需要引用 metadata 的定义,所以无法将 metadata 放在同一个合约项目中,只能作为单独的包来定义

Replies: 1 comment

Comment options

varabot
Jul 8, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by varabot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant