Skip to content

Commit

Permalink
fix: create-contract-with-value example
Browse files Browse the repository at this point in the history
Signed-off-by: Ivaylo Nikolov <[email protected]>
  • Loading branch information
ivaylonikolov7 committed Jan 27, 2025
1 parent 8c1fcc9 commit 5464e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/create-contract-with-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import dotenv from "dotenv";
dotenv.config();

// Import the compiled contract
import payableContract from "./payable.json" assert { type: "json" };
import payableContract from "./payable.json" with { type: "json" };

async function main() {
if (
Expand Down Expand Up @@ -126,7 +126,7 @@ async function main() {
.freezeWithSigner(wallet);
await contractDeleteTransaction.signWithSigner(wallet);
const contractDeleteResult =
await transaction.executeWithSigner(wallet);
await contractDeleteTransaction.executeWithSigner(wallet);

// Delete the contract
// Note: The admin key of the contract needs to sign the transaction
Expand Down

0 comments on commit 5464e34

Please sign in to comment.