change var to utxo from lockOutRef

This commit is contained in:
Jack Fraser 2023-03-07 16:11:35 -06:00 committed by Lucas
parent 2cfa0aeda9
commit 6ec37778d7
1 changed files with 2 additions and 2 deletions

View File

@ -25,11 +25,11 @@ lucid.selectWalletFromPrivateKey(await Deno.readTextFile("./key.sk"));
const validator = await readValidator();
const lockOutRef: OutRef = { txHash: Deno.args[0], outputIndex: 0 };
const utxo: OutRef = { txHash: Deno.args[0], outputIndex: 0 };
const redeemer = Data.to(new Constr(0, [utf8ToHex("Hello, World!")]));
const unlockTxHash = await unlock(lockOutRef, {
const unlockTxHash = await unlock(utxo, {
from: validator,
using: redeemer,
});