From bd33990786bc50860a653a2e5c7573bda3f0ae5a Mon Sep 17 00:00:00 2001 From: Ulf Norell Date: Tue, 7 May 2019 11:44:21 +0200 Subject: [PATCH] We now have block hash at height in FATE --- src/aeso_fcode_to_fate.erl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/aeso_fcode_to_fate.erl b/src/aeso_fcode_to_fate.erl index 026ec5f..8a63455 100644 --- a/src/aeso_fcode_to_fate.erl +++ b/src/aeso_fcode_to_fate.erl @@ -386,10 +386,8 @@ builtin_to_scode(Env, chain_spend, [_, _] = Args) -> aeb_fate_code:tuple(0)], Args); builtin_to_scode(Env, chain_balance, [_] = Args) -> call_to_scode(Env, aeb_fate_code:balance_other(?a, ?a), Args); -builtin_to_scode(_Env, chain_block_hash, [{builtin, chain_block_height, []}]) -> - [aeb_fate_code:blockhash(?a)]; -builtin_to_scode(_Env, chain_block_hash, [_]) -> - ?TODO(fate_block_hash_at_height_instruction); +builtin_to_scode(Env, chain_block_hash, [_] = Args) -> + call_to_scode(Env, aeb_fate_code:blockhash(?a, ?a), Args); builtin_to_scode(_Env, chain_coinbase, []) -> [aeb_fate_code:beneficiary(?a)]; builtin_to_scode(_Env, chain_timestamp, []) ->