change var to utxo from lockOutRef
This commit is contained in:
parent
2cfa0aeda9
commit
6ec37778d7
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue