zink-lang / zink

Rustic programming language that targets the Ethereum Virtual Machine
https://zink-lang.org
GNU General Public License v3.0
137 stars 12 forks source link

refactor(storage): reorder hash key components #243

Closed clearloop closed 1 month ago

clearloop commented 1 month ago

Resolves #242 ref #166

  1. The same storage declaration will be able to call the storage interfaces of solidity contracts, this is for writing zink as tests of solidity contracts
  2. reserve first 64 bytes instead of 96 bytes, however whatever 96 or 64 bytes could be a dynamic solution in the future, if the contract only has storage value, the reserved memory should be 32, if the contract has no storage, reserved memory should be zero, etc.

Changes