Skip to content

Commit cd4dcf3

Browse files
fix: create-contract-with-value example (#2825)
Signed-off-by: Ivaylo Nikolov <[email protected]>
1 parent c1ee153 commit cd4dcf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/create-contract-with-value.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import dotenv from "dotenv";
1313
dotenv.config();
1414

1515
// Import the compiled contract
16-
import payableContract from "./payable.json" assert { type: "json" };
16+
import payableContract from "./payable.json" with { type: "json" };
1717

1818
async function main() {
1919
if (
@@ -126,7 +126,7 @@ async function main() {
126126
.freezeWithSigner(wallet);
127127
await contractDeleteTransaction.signWithSigner(wallet);
128128
const contractDeleteResult =
129-
await transaction.executeWithSigner(wallet);
129+
await contractDeleteTransaction.executeWithSigner(wallet);
130130

131131
// Delete the contract
132132
// Note: The admin key of the contract needs to sign the transaction

0 commit comments

Comments
 (0)