Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failed #43

Open
jasagiri opened this issue Mar 19, 2021 · 1 comment
Open

test failed #43

jasagiri opened this issue Mar 19, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@jasagiri
Copy link

It looks like an error that fails to handle bignumber.js, but I don't know how to deal with it.

I didn't understand the relationship between slpjs and spl-mdm, so I posted it here.


git clone https://github.com/simpleledger/slpjs.git
yarn install
yarn test

that log >>

lib/slptokentype1.ts:36:41 - error TS2345: Argument of type 'import("/Users/jasagiri/src/slpjs/node_modules/bignumber.js/bignumber").default' is not assignable to parameter of type 'import("/Users/jasagiri/src/slpjs/node_modules/slp-mdm/node_modules/bignumber.js/bignumber").default'.
Types have separate declarations of a private property '_isBigNumber'.

36 initialQuantity
~~~~~~~~~~~~~~~

lib/slptokentype1.ts:57:41 - error TS2345: Argument of type 'import("/Users/jasagiri/src/slpjs/node_modules/bignumber.js/bignumber").default' is not assignable to parameter of type 'import("/Users/jasagiri/src/slpjs/node_modules/slp-mdm/node_modules/bignumber.js/bignumber").default'.

57 initialQuantity
~~~~~~~~~~~~~~~

lib/slptokentype1.ts:72:52 - error TS2345: Argument of type 'import("/Users/jasagiri/src/slpjs/node_modules/bignumber.js/bignumber").default[]' is not assignable to parameter of type 'import("/Users/jasagiri/src/slpjs/node_modules/slp-mdm/node_modules/bignumber.js/bignumber").default[]'.
Type 'import("/Users/jasagiri/src/slpjs/node_modules/bignumber.js/bignumber").default' is not assignable to type 'import("/Users/jasagiri/src/slpjs/node_modules/slp-mdm/node_modules/bignumber.js/bignumber").default'.

72 return TokenType1.send(tokenIdHex, outputQtyArray);
~~~~~~~~~~~~~~

lib/slptokentype1.ts:80:52 - error TS2345: Argument of type 'import("/Users/jasagiri/src/slpjs/node_modules/bignumber.js/bignumber").default[]' is not assignable to parameter of type 'import("/Users/jasagiri/src/slpjs/node_modules/slp-mdm/node_modules/bignumber.js/bignumber").default[]'.

80 return NFT1.Child.send(tokenIdHex, outputQtyArray);
~~~~~~~~~~~~~~

lib/slptokentype1.ts:82:52 - error TS2345: Argument of type 'import("/Users/jasagiri/src/slpjs/node_modules/bignumber.js/bignumber").default[]' is not assignable to parameter of type 'import("/Users/jasagiri/src/slpjs/node_modules/slp-mdm/node_modules/bignumber.js/bignumber").default[]'.

82 return NFT1.Group.send(tokenIdHex, outputQtyArray);
~~~~~~~~~~~~~~

lib/slptokentype1.ts:91:63 - error TS2345: Argument of type 'import("/Users/jasagiri/src/slpjs/node_modules/bignumber.js/bignumber").default' is not assignable to parameter of type 'import("/Users/jasagiri/src/slpjs/node_modules/slp-mdm/node_modules/bignumber.js/bignumber").default'.

91 return TokenType1.mint(tokenIdHex, batonVout, mintQuantity);
~~~~~~~~~~~~

lib/slptokentype1.ts:95:63 - error TS2345: Argument of type 'import("/Users/jasagiri/src/slpjs/node_modules/bignumber.js/bignumber").default' is not assignable to parameter of type 'import("/Users/jasagiri/src/slpjs/node_modules/slp-mdm/node_modules/bignumber.js/bignumber").default'.

95 return NFT1.Group.mint(tokenIdHex, batonVout, mintQuantity);
~~~~~~~~~~~~

Found 7 errors.

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@jcramer
Copy link
Contributor

jcramer commented Mar 21, 2021

Thanks for the report, will investigate.

@jcramer jcramer added the bug Something isn't working label Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants