sCrypt-Inc / boilerplate

sCrypt project boilerplate
320 stars 86 forks source link

These readonly functions should be off chain #216

Closed xhliu closed 1 year ago

xhliu commented 1 year ago

No need for a tx. https://github.com/sCrypt-Inc/scryptTS-examples/blob/35421c6afc1ec9b731e983c3445423c5fe22cc6b/src/contracts/erc20.ts#L112

Same for https://github.com/sCrypt-Inc/scryptTS-examples/blob/35421c6afc1ec9b731e983c3445423c5fe22cc6b/src/contracts/erc20.ts#L292

zhfnjust commented 1 year ago

can't access map/set in the Non-public function