oscoin / oscoin-parity-wasm-prototype

Prototype implemenation of Oscoin ledger on Parity Ethereum Wasm
0 stars 0 forks source link

Storage borrows pwasm::Env #56

Closed geigerzaehler closed 5 years ago

geigerzaehler commented 5 years ago

Instead of Storage consuming the pwasm::Env argument it only borrows it. This allows Ledger_ to provide a reference to pwasm::Env to the Ledger implementation. This reference can be used to, for example, obtain the sender of a transaction.