You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It says that the state can consist of at most 8 fields of 32 bytes each.
But there are no details further. For example, I have used a simple trial and error method to see how this works in practice. For me 9 states worked as well.
Also, when I switched PublicKey instead of a Field the test script failed. Hence, PublicKey seems to take more space than a Field.
Removing one additional Field worked just fine.
I have tested my finding further -- and found out that 2 Fields is equivalent to 1 PublicKey
The text was updated successfully, but these errors were encountered:
I am not sure if this is the right place to just post walls of texts, excuse me.
In ERC-20 some tokens implement states that contain strings, I think from projects implemented during hackathons this is the main thing that stands out to me.
Diving into a smart contract details further.
In On-chain state Section of a smart contract
https://docs.minaprotocol.com/zkapps/o1js/smart-contracts#on-chain-state
It says that the state can consist of at most 8 fields of 32 bytes each.
But there are no details further. For example, I have used a simple trial and error method to see how this works in practice. For me 9 states worked as well.
Also, when I switched PublicKey instead of a Field the test script failed. Hence, PublicKey seems to take more space than a Field.
Removing one additional Field worked just fine.
I have tested my finding further -- and found out that 2 Fields is equivalent to 1 PublicKey
The text was updated successfully, but these errors were encountered: