Finschia / cosmwasm

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

Support pass to reference type arguments using the EXTERNREF #152

Open brew0722 opened 2 years ago

brew0722 commented 2 years ago

Closes: #151

wasm cannot easily reference external memory regions, since each instance is guaranteed to be a sandboxed region of memory. To solve this limitation, there is a feature spec that supports reference types. I am particularly interested in the EXTERNREF keyword.

But now, it seems that most of them have been introduced in a limited way only in the web environment. find the methods using in our VM.

brew0722 commented 2 years ago

https://github.com/wasmerio/wasmer/blob/4c1bf5cb15c8743412ae0c2418e17a776eb3756f/lib/types/src/features.rs#L91 To use the reference type, the bulk_memory feature must also be activated. Before this issue, the bulk_memory related issue must be resolved first. https://github.com/line/cosmwasm/issues/154