Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Call deployed contract #16

Closed
oznfc opened this issue Nov 22, 2021 · 3 comments
Closed

Call deployed contract #16

oznfc opened this issue Nov 22, 2021 · 3 comments

Comments

@oznfc
Copy link

oznfc commented Nov 22, 2021

How can I call deployed contract with program and storage address ?

@oznfc oznfc changed the title Deployed contract Call deployed contract Nov 22, 2021
@oznfc
Copy link
Author

oznfc commented Nov 22, 2021

when ı tried with react I'm getting this error :
Unhandled Rejection (TypeError): buf.writeBigUInt64LE is not a function

@seanyoung
Copy link
Contributor

@oznfc how are you trying to use the npm library? I'm not following why this is happening, would you mind giving your exact steps for reproducing this error?

Also have you seen the steps in https://github.com/solana-labs/solana-solidity.js/blob/master/README.md ?

@jordaaash
Copy link
Contributor

It sounds like Buffer is missing this method in your environment: https://nodejs.org/api/buffer.html#bufwritebiguint64levalue-offset

Node.js has this method going back quite a few versions. If you're running this with React, you'll need to add a polyfill for Buffer to your build setup.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants