VanishMax / foton

⚡ Create TON dApps with the speed of a foton
https://foton.sh
MIT License
44 stars 4 forks source link

Incorrect Documentation for read Method #6

Closed AlexMubarakshin closed 4 weeks ago

AlexMubarakshin commented 1 month ago

Hey!

I noticed an issue with the documentation for the read method.

In the provided example, the method field is used like this:

const res = await contractClient.read({
  method: 'counter',
  arguments: [],
});

However, it should be getter instead of method, like so:

const res = await contractClient.read({
  getter: 'counter',
  arguments: [],
});

Thanks!

VanishMax commented 4 weeks ago

Fixed in #7