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

交易时,关于params参数使用 #12

Open
15365917109 opened this issue May 6, 2023 · 0 comments
Open

交易时,关于params参数使用 #12

15365917109 opened this issue May 6, 2023 · 0 comments

Comments

@15365917109
Copy link

msg := &types.Message{ Version: 0, To: to, From: from, Nonce: 0, Value: filecoin.FromFil(f.Amount), GasLimit: 0, GasFeeCap: abi.NewTokenAmount(0), GasPremium: abi.NewTokenAmount(0), Method: 0, Params: params, }

params 的值是[]byte类型,实例中都是传递nil,想请教一下,如果是一个结构体或map,应该如何传参在 https://filscan.io/中的参数中显示。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant