使用@suiet/wallet-kit 调用合约出错 #281
Answered
by
qiwihui
xiegudong45
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
qiwihui
Feb 9, 2023
Replies: 3 comments 2 replies
-
对比了下代码,看起来是没有传入packageObjectId.比较奇怪的是执行direnv allow好像没有反应,有谁知道是为什么吗? |
Beta Was this translation helpful? Give feedback.
0 replies
-
请求的 “data” 应该要包含 function create_example_nft() {
const { name, url, description } = formInput;
return {
packageObjectId: PACKAGE_ID,
module: 'devnet_nft',
function: 'mint',
typeArguments: [],
arguments: [
name,
description,
url,
],
gasBudget: 30000,
};
} |
Beta Was this translation helpful? Give feedback.
2 replies
-
使用 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xiegudong45
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
使用
.env.local
作为环境变量配置。