Skip to content

Commit dbaa00f

Browse files
Update documentation to include fee change
1 parent adf245a commit dbaa00f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/examples/02_transfer_private.md

Lines changed: 1 addition & 1 deletion
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 optional priority fee amount.
30+
0.0, // 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.

docs/examples/03_deploy_program.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function addition:
3030
`;
3131

3232
// Create a deployment transaction using the declared source code.
33-
const transaction = await programManager.buildDeploymentTransaction(program, 3, false);
33+
const transaction = await programManager.buildDeploymentTransaction(program, 0.0, false);
3434
// Broadcast the transaction to the Aleo network.
3535
const result = await programManager.networkClient.submitTransaction(transaction);
3636
```

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-
priorityFee: 0.10,
135+
priorityFee: 0.0,
136136
privateFee: false, // Assuming a value for privateFee
137137
inputs: ["aleo17x23al8k9scqe0qqdppzcehlu8vm0ap0j5mukskdq56lsa25lv8qz5cz3g", "50000000u64"], // Example inputs matching the function definition
138138
keySearchParams: keySearchParams,

docs/guide/07_deploying_programs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ programManager.setAccount(account)
6363
// Define an Aleo program to deploy
6464
const program = "program hello_hello.aleo;\n\nfunction hello:\n input r0 as u32.public;\n input r1 as u32.private;\n add r0 r1 into r2;\n output r2 as u32.private;\n";
6565

66-
// Define a fee to pay to deploy the program
67-
const fee = 3.8; // 3.8 Aleo credits
66+
// Set the priority fee to pay to deploy the program
67+
const priorityFee = 0.0;
6868

6969
// Build a deployment transaction for the program.
70-
const tx = await programManager.buildDeploymentTransaction(program, fee, false);
70+
const tx = await programManager.buildDeploymentTransaction(program, priorityFee, false);
7171

7272
// Send the transaction to the network.
7373
const tx_id = await programManager.networkClient.submitTransaction(tx);

0 commit comments

Comments
 (0)