aleeusgr / potential-robot

minimal dApp testing suite
MIT License
3 stars 2 forks source link

lucid.test.js #45

Closed aleeusgr closed 1 year ago

aleeusgr commented 1 year ago

https://www.npmjs.com/package/lucid-cardano

examples other examples

aleeusgr commented 1 year ago
 FAIL  tests/lucid.test.js [ tests/lucid.test.js ]
TypeError: Cannot convert undefined to a BigInt
 ❯ Blockfrost.getProtocolParameters node_modules/lucid-cardano/esm/src/provider/blockfrost.js:30:25
 ❯ Function.new node_modules/lucid-cardano/esm/src/lucid/lucid.js:50:40
 ❯ tests/lucid.test.js:3:15
      1| import { Blockfrost, Lucid } from "lucid-cardano"; // NPM
      2| 
      3| const lucid = await Lucid.new(
       |               ^
      4|   new Blockfrost("https://cardano-preview.blockfrost.io/api/v0", "testnetXWdDgoYImp12FdSKhIGNL9oNJZAN7evl"),
      5|   "Preview",

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯

 Test Files  1 failed | 3 passed (4)
aleeusgr commented 1 year ago

https://www.w3schools.com/js/js_objects.asp