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

Write a smart contract using a private key in [u8; 32] format #682

Open
dnnagy opened this issue Feb 16, 2023 · 0 comments
Open

Write a smart contract using a private key in [u8; 32] format #682

dnnagy opened this issue Feb 16, 2023 · 0 comments

Comments

@dnnagy
Copy link

dnnagy commented Feb 16, 2023

Suppose I have a private key [u8; 32], what is the correct way to call a contract function and sign the transaction with the private key using http transport?

I tried to use Personal but keep running in the following error:

error[E0599]: no function or associated item named `new` found for struct `Personal` in the current scope
   --> src/main.rs:129:37
    |
129 |     let account = Personal::<Http>::new();
    |                                     ^^^ function or associated item not found in `Personal<Http>`
    |
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