From 07da42a5db44804007641f81a9994ef979e45c02 Mon Sep 17 00:00:00 2001 From: neodiX42 Date: Mon, 19 Jul 2021 22:39:29 +0200 Subject: [PATCH] Create build-config-elector-code.fif The script helps to create a config update boc file in order one wants to upgrade the code of the elector smart contract. --- build-config-elector-code.fif | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 build-config-elector-code.fif diff --git a/build-config-elector-code.fif b/build-config-elector-code.fif new file mode 100644 index 0000000..8bcfc9a --- /dev/null +++ b/build-config-elector-code.fif @@ -0,0 +1,21 @@ +#!/usr/bin/fift -s +"Asm.fif" include +"TonUtil.fif" include +"GetOpt.fif" include + +"elector" =: name +"auto/elector-code.fif" =: src-file + +."Assembling new " name type ." smart contract code from " src-file type cr +src-file include +dup abort"not valid smart contract code" + =: config1001 + +."Config1001 built: " cr +config1001 B +"1001.boc" +tuck B>file +."(Saved to file " type .")" cr + +// fift -s update-config.fif config-master -1001 1001.boc