From b0263319e3a24a2ba644a7e8904b1182977e65c7 Mon Sep 17 00:00:00 2001 From: radrow Date: Mon, 26 Apr 2021 14:23:20 +0200 Subject: [PATCH 1/2] Add TX_FEE --- src/aeb_fate_generate_ops.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/aeb_fate_generate_ops.erl b/src/aeb_fate_generate_ops.erl index aed4d8d..a7f11a1 100644 --- a/src/aeb_fate_generate_ops.erl +++ b/src/aeb_fate_generate_ops.erl @@ -227,6 +227,8 @@ ops_defs() -> , { 'CLONE_G', 16#a5, true, false, true, 1000, [a,a,a,a,a], clone_g, {contract, typerep, integer, integer, bool}, any, "Like `CLONE` but additionally limits gas of `init` call to Arg3"} , { 'BYTECODE_HASH', 16#a6, false, true, true, 100, [a,a], bytecode_hash, {contract}, variant, "Arg0 := hash of the deserialized contract's bytecode under address given in Arg1 (or `None` on fail)."} + , { 'TX_FEE', 16#a7, false, true, true, 10, [a], tx_fee, {}, integer, "Arg0 := The fee for the current call tx."} + , { 'DEACTIVATE', 16#fa, false, true, true, 10, [], deactivate, {}, none, "Mark the current contract for deactivation."} , { 'ABORT', 16#fb, true, true, true, 10, [a], abort, {string}, none, "Abort execution (dont use all gas) with error message in Arg0."} , { 'EXIT', 16#fc, true, true, true, 10, [a], exit, {string}, none, "Abort execution (use upp all gas) with error message in Arg0."} -- 2.30.2 From 69110b2ee835c58baa9a494a0a0f22d9e7f9fb0b Mon Sep 17 00:00:00 2001 From: radrow Date: Mon, 26 Apr 2021 15:19:59 +0200 Subject: [PATCH 2/2] Rename TX_FEE to just FEE --- src/aeb_fate_generate_ops.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aeb_fate_generate_ops.erl b/src/aeb_fate_generate_ops.erl index a7f11a1..8f106e1 100644 --- a/src/aeb_fate_generate_ops.erl +++ b/src/aeb_fate_generate_ops.erl @@ -227,7 +227,7 @@ ops_defs() -> , { 'CLONE_G', 16#a5, true, false, true, 1000, [a,a,a,a,a], clone_g, {contract, typerep, integer, integer, bool}, any, "Like `CLONE` but additionally limits gas of `init` call to Arg3"} , { 'BYTECODE_HASH', 16#a6, false, true, true, 100, [a,a], bytecode_hash, {contract}, variant, "Arg0 := hash of the deserialized contract's bytecode under address given in Arg1 (or `None` on fail)."} - , { 'TX_FEE', 16#a7, false, true, true, 10, [a], tx_fee, {}, integer, "Arg0 := The fee for the current call tx."} + , { 'FEE', 16#a7, false, true, true, 10, [a], fee, {}, integer, "Arg0 := The fee for the current call tx."} , { 'DEACTIVATE', 16#fa, false, true, true, 10, [], deactivate, {}, none, "Mark the current contract for deactivation."} , { 'ABORT', 16#fb, true, true, true, 10, [a], abort, {string}, none, "Abort execution (dont use all gas) with error message in Arg0."} -- 2.30.2