-
Notifications
You must be signed in to change notification settings - Fork 50
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
Docs don't say how to specify the caller #172
Comments
You need to use a normal account. See https://github.com/AhaLabs/bootme/blob/feat/launcher/tests/workspaces/bootloader.rs#L30-L35 You can also use a transaction builder. |
For your example, all you need to do to specify matcher1.call(&worker, contract.id(), "offer_matching_funds")
... // rest of the options
.transact()
.await? |
Thanks @willemneal and @ChaoticTempest . That helped. Once I figure out more of Workspaces, I'll be in a better position to suggest specifically how to improve the docs. But yeah I definitely think this tip belongs in there. |
* added a section to Readme to show how to check account balances See #172 * Update README.md with better example of balance check from @ChaoticTempest Co-authored-by: Phuong Nguyen <[email protected]> * Using `max_gas()` in the new Common Usage section of Readme Co-authored-by: Phuong Nguyen <[email protected]>
* added a section to Readme to show how to check account balances See #172 * Update README.md with better example of balance check from @ChaoticTempest Co-authored-by: Phuong Nguyen <[email protected]> * Using `max_gas()` in the new Common Usage section of Readme Co-authored-by: Phuong Nguyen <[email protected]>
closed with #186 |
I've spent a long time looking through docs here and elsewhere and can't find how to call a function while specifying who is the signer (i.e. what is the account making the call)?
I'm trying to figure out how to fix this (see the "TODO" below).
I appreciate any hints. Thanks!
Ryan Walsh
NEAR Foundation Engineering
The text was updated successfully, but these errors were encountered: