You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys, getting this error when running vesting-unlock.ts
deno run --allow-net --allow-read --allow-env .\vesting-unlock.ts
error: Uncaught (in promise) Error: Could not type cast to string/bytes.
throw new Error("Could not type cast to string/bytes.");
at castFrom (https://deno.land/x/[email protected]/src/plutus/data.ts:286:15)
at https://deno.land/x/[email protected]/src/plutus/data.ts:345:26
at Array.forEach (<anonymous>)
at castFrom (https://deno.land/x/[email protected]/src/plutus/data.ts:338:51)
at Object.from (https://deno.land/x/[email protected]/src/plutus/data.ts:188:18)
at file:///C:/Users/alfre/Documents/AIKEN/hello-world/vesting-unlock.ts:58:22
at Array.filter (<anonymous>)
at file:///C:/Users/alfre/Documents/AIKEN/hello-world/vesting-unlock.ts:57:27
at eventLoopTick (ext:core/01_core.js:168:7)
Lines 57 and 58 are the first 2 of these:
const utxos = scriptUtxos.filter((utxo) => {
let datum = Data.from(
utxo.datum,
Datum,
);
Hey guys, getting this error when running vesting-unlock.ts
deno run --allow-net --allow-read --allow-env .\vesting-unlock.ts
error: Uncaught (in promise) Error: Could not type cast to string/bytes.
throw new Error("Could not type cast to string/bytes.");
Lines 57 and 58 are the first 2 of these:
const utxos = scriptUtxos.filter((utxo) => {
let datum = Data.from(
utxo.datum,
Datum,
);
});
Not sure if/how to set the correct type :D
Thank you!
The text was updated successfully, but these errors were encountered: