From 87cf4632cc4047f26248ec911dc4fc1179658752 Mon Sep 17 00:00:00 2001 From: Greg B Date: Thu, 1 Aug 2024 13:17:20 +0800 Subject: [PATCH] Fix drep update min fee calculation --- scripts/cnode-helper-scripts/cntools.library | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/cnode-helper-scripts/cntools.library b/scripts/cnode-helper-scripts/cntools.library index 86085a589..ae2ee8205 100644 --- a/scripts/cnode-helper-scripts/cntools.library +++ b/scripts/cnode-helper-scripts/cntools.library @@ -3952,7 +3952,12 @@ registerDRep() { ) fi - tmpNewBalance=$(( base_lovelace - DREP_DEPOSIT )) + if [[ ${is_update} = N ]]; then + tmpNewBalance=$(( base_lovelace - DREP_DEPOSIT )) + else + tmpNewBalance=$(( base_lovelace )) + fi + build_args=( ${tx_in} --tx-out "${base_addr}+${tmpNewBalance}${assets_tx_out}"