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

updated signAndSendTranscation to use object args #784

Merged

Conversation

Rishabhraghwendra18
Copy link
Contributor

Issue No - #760
Desc: We were using signAndSendTranscation as positional args which is deprecated in near-api-js . This PR updates this command to use the newer function call method of passing arguments as an object.

@volovyks volovyks linked an issue Jun 3, 2021 that may be closed by this pull request
index.js Outdated Show resolved Hide resolved
@volovyks
Copy link
Collaborator

volovyks commented Jun 3, 2021

We had one more deprecation warning:
Account.functionCall(contractId, methodName, args, gas, amount) deprecated use Account.functionCall(FunctionCallOptions) instead commands/call.js:47:48

Added space between the key & value

Co-authored-by: Serhii Volovyk <SergeyVolovyk@gmail.com>
@thisisjoshford
Copy link
Contributor

We had one more deprecation warning:
Account.functionCall(contractId, methodName, args, gas, amount) deprecated use Account.functionCall(FunctionCallOptions) instead commands/call.js:47:48

PR #782 fixed this @volovyk-s 🙂

Copy link
Contributor

@thisisjoshford thisisjoshford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks for the contribution @Rishabhraghwendra18 🙏🏼

@volovyks volovyks merged commit 21aea78 into near:master Jun 3, 2021
@Rishabhraghwendra18
Copy link
Contributor Author

Rishabhraghwendra18 commented Jun 3, 2021

Awesome! Thanks for the contribution @Rishabhraghwendra18 🙏🏼

No problem . I want to contribute more to this organization.

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

Successfully merging this pull request may close these issues.

Don't use deprecated functions in near-cli
3 participants