Skip to content

Commit

Permalink
Replace --fee 0 with dummy fee , that'll default to 0.2 ADA
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Jul 17, 2024
1 parent 765719b commit ab5e355
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions scripts/cnode-helper-scripts/cntools.library
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CNTOOLS_MINOR_VERSION=1
CNTOOLS_PATCH_VERSION=0

CNTOOLS_VERSION="${CNTOOLS_MAJOR_VERSION}.${CNTOOLS_MINOR_VERSION}.${CNTOOLS_PATCH_VERSION}"
DUMMYFEE=20000

############################################################
# Default config values #
Expand Down Expand Up @@ -2074,7 +2075,7 @@ registerStakeWallet() {
"${script_args[@]}"
--tx-out "${base_addr}+0${assets_tx_out}"
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
--certificate-file "${stake_cert_file}"
--out-file "${TMP_DIR}"/tx0.tmp
)
Expand Down Expand Up @@ -2200,7 +2201,7 @@ deregisterStakeWallet() {
"${script_args[@]}"
--tx-out "${base_addr}+0${assets_tx_out}"
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
--certificate-file "${stake_dereg_file}"
--out-file "${TMP_DIR}"/tx0.tmp
)
Expand Down Expand Up @@ -2327,7 +2328,7 @@ sendAssets() {
${tx_in}
"${script_args[@]}"
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
${metafile_param}
--out-file "${TMP_DIR}"/tx0.tmp
)
Expand Down Expand Up @@ -2479,7 +2480,7 @@ delegate() {
"${script_args[@]}"
--tx-out "${base_addr}+0${assets_tx_out}"
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
--certificate-file "${pool_delegcert_file}"
--out-file "${TMP_DIR}"/tx0.tmp
)
Expand Down Expand Up @@ -2598,7 +2599,7 @@ withdrawRewards() {
--tx-out "${base_addr}+0${assets_tx_out}"
--withdrawal ${reward_addr}+${reward_lovelace}
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
--out-file "${TMP_DIR}"/tx0.tmp
)

Expand Down Expand Up @@ -2722,7 +2723,7 @@ registerPool() {
"${script_args[@]}"
--tx-out "${base_addr}+0${assets_tx_out}"
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
--certificate-file "${pool_regcert_file}"
--out-file "${TMP_DIR}"/tx0.tmp
)
Expand Down Expand Up @@ -2874,7 +2875,7 @@ modifyPool() {
"${script_args[@]}"
--tx-out "${base_addr}+0${assets_tx_out}"
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
--certificate-file "${pool_regcert_file}"
--out-file "${TMP_DIR}"/tx0.tmp
)
Expand Down Expand Up @@ -3022,7 +3023,7 @@ deRegisterPool() {
"${script_args[@]}"
--tx-out "${addr}+0${assets_tx_out}"
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
--certificate-file "${pool_deregcert_file}"
--out-file "${TMP_DIR}"/tx0.tmp
)
Expand Down Expand Up @@ -3258,7 +3259,7 @@ sendMetadata() {
"${script_args[@]}"
--tx-out "${addr}+0${assets_tx_out}"
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
${metafile_param}
--out-file "${TMP_DIR}"/tx0.tmp
)
Expand Down Expand Up @@ -3382,7 +3383,7 @@ mintAsset() {
--mint-script-file "${policy_script_file}"
${metafile_param}
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
--out-file "${TMP_DIR}"/tx0.tmp
)

Expand Down Expand Up @@ -3514,7 +3515,7 @@ burnAsset() {
--mint-script-file "${policy_script_file}"
${metafile_param}
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
--out-file "${TMP_DIR}"/tx0.tmp
)

Expand Down Expand Up @@ -3618,7 +3619,6 @@ calcMinFee() {
--tx-body-file "$1"
--tx-in-count $2
--tx-out-count $3
${NETWORK_IDENTIFIER}
--witness-count $4
--byron-witness-count 0
--protocol-params-file "${TMP_DIR}"/protparams.json
Expand Down Expand Up @@ -4028,7 +4028,7 @@ submitPoll() {
"${script_args[@]}"
--tx-out "${addr}+0${assets_tx_out}"
--invalid-hereafter ${ttl}
--fee 0
--fee ${DUMMYFEE}
${metafile_param}
--required-signer-hash "${POOL_ID_HASH}"
--out-file "${TMP_DIR}"/tx0.tmp
Expand Down

0 comments on commit ab5e355

Please sign in to comment.