From cca28116855f3a8231994a426d395b960cf52d77 Mon Sep 17 00:00:00 2001 From: Mark Hendrickson <28991+markmhx@users.noreply.github.com> Date: Tue, 7 Sep 2021 14:19:34 +0200 Subject: [PATCH] Add string as type option for fee parameter --- src/pages/build-apps/guides/transaction-signing.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/build-apps/guides/transaction-signing.md b/src/pages/build-apps/guides/transaction-signing.md index b52acb86..7d5a3918 100644 --- a/src/pages/build-apps/guides/transaction-signing.md +++ b/src/pages/build-apps/guides/transaction-signing.md @@ -90,7 +90,7 @@ interface STXTransferOptions { amount: string; memo?: string; network: StacksNetwork; - fee: number, + fee: number | string, appDetails: { name: string; icon: string; @@ -107,7 +107,7 @@ interface STXTransferOptions { | onFinish | function | true | Callback executed by app when transaction has been signed and broadcasted. [Read more](#onFinish-option) | | memo | string | false | Optional memo for inclusion with transaction | | network | StacksNetwork | false | Specify the network that this transaction should be completed on. [Read more](#network-option) | -| fee | number | false | Optional fee amount in microstacks (1 STX = 1,000,000 microstacks) for overwriting the wallet's default fee value. [Read more](https://forum.stacks.org/t/mempool-congestion-on-stacks-observations-and-next-steps-from-hiro/12325/5) | +| fee | number \| string | false | Optional fee amount in microstacks (1 STX = 1,000,000 microstacks) for overwriting the wallet's default fee value. [Read more](https://forum.stacks.org/t/mempool-congestion-on-stacks-observations-and-next-steps-from-hiro/12325/5) | ## Prompt to deploy smart contract @@ -140,7 +140,7 @@ interface ContractDeployOptions { codeBody: string; contractName: string; network: StacksNetwork; - fee: number, + fee: number | string, appDetails: { name: string; icon: string; @@ -156,7 +156,7 @@ interface ContractDeployOptions { | appDetails | object | true | Dictionary that requires `name` and `icon` for app | | onFinish | function | true | Callback executed by app when transaction has been signed and broadcasted. [Read more](#onFinish-option) | | network | StacksNetwork | false | Specify the network that this transaction should be completed on. [Read more](#network-option) | -| fee | number | false | Optional fee amount in microstacks (1 STX = 1,000,000 microstacks) for overwriting the wallet's default fee value. [Read more](https://forum.stacks.org/t/mempool-congestion-on-stacks-observations-and-next-steps-from-hiro/12325/5) | +| fee | number \| string | false | Optional fee amount in microstacks (1 STX = 1,000,000 microstacks) for overwriting the wallet's default fee value. [Read more](https://forum.stacks.org/t/mempool-congestion-on-stacks-observations-and-next-steps-from-hiro/12325/5) | -> Contracts will deploy to the Stacks address of the authenticated user. @@ -233,7 +233,7 @@ interface ContractCallOptions { contractName: string; functionArgs?: ClarityValue[]; network: StacksNetwork; - fee: number, + fee: number | string, appDetails: { name: string; icon: string; @@ -251,7 +251,7 @@ interface ContractCallOptions { | appDetails | object | true | Dictionary that requires `name` and `icon` for app | | onFinish | function | true | Callback executed by app when transaction has been signed and broadcasted. [Read more](#onFinish-option) | | | network | StacksNetwork | false | Specify the network that this transaction should be completed on. [Read more](#network-option) | -| fee | number | false | Optional fee amount in microstacks (1 STX = 1,000,000 microstacks) for overwriting the wallet's default fee value. [Read more](https://forum.stacks.org/t/mempool-congestion-on-stacks-observations-and-next-steps-from-hiro/12325/5) | +| fee | number \| string | false | Optional fee amount in microstacks (1 STX = 1,000,000 microstacks) for overwriting the wallet's default fee value. [Read more](https://forum.stacks.org/t/mempool-congestion-on-stacks-observations-and-next-steps-from-hiro/12325/5) | ## Getting the signed transaction back after completion {#onFinish-option}