codex-storage / nim-ethers

Port of ethers.js to Nim
Other
8 stars 4 forks source link

Fix decoding of getter functions #63

Closed markspanbroek closed 8 months ago

markspanbroek commented 9 months ago

Getter functions that are generated by the solidity compiler do not wrap their return value in a tuple like other functions do.

Adds a new pragma {.getter.} to indicate that a function should be handled as a solidity generated getter. This pragma can be used instead of {.pure.} or {.view.}.

Depends on #64

emizzle commented 9 months ago

https://github.com/codex-storage/nim-ethers/pull/64 is up for the json-rpc and chronos upgrades 👍

markspanbroek commented 9 months ago

Sorry for the rebase that will need to happen after #64 😅

No problem, thanks for handling the chronos and jsonrpc updates! Rebasing is very simple in comparison :smile: