Finschia / cosmwasm

Fast and reusable WebAssembly smart contract runtime(and library) for finschia-sdk.
Apache License 2.0
27 stars 14 forks source link

Read/Write context/permission problem #263

Closed da1suk8 closed 1 year ago

da1suk8 commented 1 year ago

This PR is realeted to https://github.com/line/cosmwasm/issues/255

dynamic link does not manage read/write context and permissions.

wasmvm (rust part) should manage read/write context and permission of dynamic link call stacks. And contracts' functions should tell wasmvm that it is readonly or read/write.

It is considered necessary to expose the read/write context and permission to the WASM binary in some way, and for the VM to recognize it.