Skip to content

Commit 365df4c

Browse files
committed
updated @examples to include correct reference to priority fee
1 parent 49a6a79 commit 365df4c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

docs/examples/01_transfer_public.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const transaction = await programManager
2929
recipient // The address of the recipient.
3030
.address()
3131
.to_string(),
32-
0.0 // The priority fee amount.
32+
0.0 // The optional priority fee amount.
3333
);
3434

3535
// Broadcast the transaction to the Aleo network.

docs/examples/02_transfer_private.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const transaction = await programManager
2727
.address()
2828
.to_string(),
2929
"publicToPrivate", // The transfer type.
30-
0.1, // The fee amount.
30+
0.1, // The optional priority fee amount.
3131
false, // Indicates whether or not the fee will be private.
3232
);
3333
// Broadcast the transaction to the Aleo network.
@@ -62,7 +62,7 @@ const transaction2 = await programManager
6262
.address()
6363
.to_string(),
6464
"private", // The transfer type.
65-
0.0, // The priority fee amount.
65+
0.0, // The optional priority fee amount.
6666
false, // Indicates whether or not the fee will be private.
6767
);
6868
// Broadcast the transaction to the Aleo network.

docs/examples/04_execute_program.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const input2 = 28;
2727
const transaction = await programManager.buildExecutionTransaction({
2828
programName: "addition_demo.aleo",
2929
functionName: "addition",
30-
fee: 0.0,
30+
priorityFee: 0.0,
3131
privateFee: false,
3232
inputs: [`${input1}u32`, `${input2}u32`],
3333
keySearchParams: { "cacheKey": "addition_demo:addition" },

docs/guide/06_executing_programs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ try {
132132
const tx = await programManager.buildExecutionTransaction({
133133
programName: "betastaking.aleo",
134134
functionName: "stake_public",
135-
fee: 0.10,
135+
priorityFee: 0.10,
136136
privateFee: false, // Assuming a value for privateFee
137137
inputs: ["aleo17x23al8k9scqe0qqdppzcehlu8vm0ap0j5mukskdq56lsa25lv8qz5cz3g", "50000000u64"], // Example inputs matching the function definition
138138
keySearchParams: keySearchParams,

0 commit comments

Comments
 (0)