Zilliqa / scilla-rtl

Execute Scilla code compiled by the Scilla -> LLVM compiler.
GNU General Public License v3.0
8 stars 3 forks source link

Blockchain Info communication must happen via `ScillaParams` #63

Open vaivaswatha opened 2 years ago

vaivaswatha commented 2 years ago

ScillaContrExec::execMsg takes the current blocknumber as an argument. Instead this should happen via callbacks, similar to how ScillaParams::fetchStateValue etc works, using the newly introduce fetchBlockchainInfo API introduced in https://github.com/Zilliqa/Zilliqa/pull/2757.

Additional reference: https://github.com/Zilliqa/scilla/pull/1056