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

Example of Documentation Not Working #37

Open
yogeshgautam opened this issue May 16, 2021 · 0 comments
Open

Example of Documentation Not Working #37

yogeshgautam opened this issue May 16, 2021 · 0 comments

Comments

@yogeshgautam
Copy link

I was following https://filecoin-shipyard.github.io/filecoin.js/docs/sign-message document for creating the message but seems the example provided to create Message gives an error.

This gives an error:

const message = await walletProvider.createMessage({
    To: __to__,
    From: __from__,
    Value: new BigNumber(__amount__),
});

But this works

 const message = await walletProvider.createMessage({
                From: myAddress,
                To: toAddress,
                GasLimit: 608335,
                GasFeeCap: new BigNumber(0),
                GasPremium: new BigNumber(0),
                Value: 0.001,
                Method: 0,
                Params: '',
                Nonce: 12
            });
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