Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Assertion failed #4

Description

@mshahzaib101

i am getting "Assertion failed" error when i mint new Token..

const publicKey = computer.db.wallet.getPublicKey().toString();
const TokenSc = await Utils.importFromPublic("/token-sc.js");
const token = await computer.new(TokenSc, [publicKey, supplyField, mintNameField]);

err:
err Error: Assertion failed
at assert (bn.js:5)
at BN.toBuffer (bn.js:485)
at Signature.push../node_modules/bitcoinsource/dist/bitcoinsource.esm.js.Signature.toBuffer (bitcoinsource.esm.js:3035)
at PublicKeyHashInput.addSignature (bitcoinsource.esm.js:6944)
at Dt.applySignature (bitcoinsource.esm.js:8458)
at bitcoinsource.esm.js:8423
at Array.forEach ()
at Dt.sign (bitcoinsource.esm.js:8422)
at $t._callee45$ (index.js:2803)
at tryCatch (runtime.js:64)
at Generator.invoke [as _invoke] (runtime.js:281)
at Generator.next (runtime.js:117)
at o (index.js:80)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions