Questions tagged [wasm-api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
194 views

Working with memory (malloc, etc.) in smart contracts

I'm trying to compile smart contracts written in Rust. So far so good, but when I tried to add memory management contract deployment choked. (type (;0;) (func (param i32) (result i32))) (import "env" ...
1
vote
1answer
106 views

Is there any fallback function in smart contract similar to Ethereum?

In example dice at contracts directory, alice/bob should set permission to dice account for transferring EOS token from alice/bob to dice. alice dice contract eosio....
2
votes
1answer
1k views

How to get block info (e.g. block hash code) in smart contract?

I want to use action context information, such as block hash code, to generate number as "random" numbers in smart contract. But I can't find any interface to get block hash code.