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

Fix deprecated call to loadContract #39

Closed
mikedotexe opened this issue Jan 1, 2020 · 1 comment
Closed

Fix deprecated call to loadContract #39

mikedotexe opened this issue Jan 1, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers P2

Comments

@mikedotexe
Copy link
Contributor

Low priority. Getting the console warning:

near.loadContract is deprecated. Use new nearlib.Contract(yourAccount, contractId, { viewMethods, changeMethods }) instead.

Location of call (from latest commit when this Issue was opened):
https://github.com/nearprotocol/create-near-app/blob/4aa9cd180827ef184e046bffc3a8157f5e7243ff/blank_react_project/src/index.js#L22

@janedegtiareva
Copy link
Contributor

janedegtiareva commented Jun 10, 2020

acceptance criteria: use near.contract instead of near.loadContract
warning should not happen

@chadoh chadoh closed this as completed in 9799d43 Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers P2
Projects
None yet
Development

No branches or pull requests

2 participants