Skip to content

Commit

Permalink
fix: create-contract-with-value example (#2825)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
  • Loading branch information
ivaylonikolov7 authored Feb 11, 2025
1 parent c1ee153 commit cd4dcf3
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 cd4dcf3

Please sign in to comment.