Repository: ProjectOpenSea/opensea-js

Issue #734: Error: invalid BigNumber value
Created: 2022-09-11T14:15:03Z
Started getting this error today, on openseaSDK.createSellOrder() method with Node 16.14.0
await openseaSDK.createSellOrder({
        asset: {
             tokenId: item.id,
        },
        startAmount: item.startAmount, // 1.5
        endAmount: item.endAmount,  // 1.35  
        ...

        /** Getting id, prices - from my "item" array  */
 });

My current package.json
"dependencies": {
    "yarn": "^1.22.19",
    "@0x/subproviders": "^7.0.0",
    "@truffle/hdwallet-provider": "^2.0.14",
    "express": "^4.18.1",
    "opensea-js": "^4.0.8",
    "web3": "^1.7.5"
  }

Full error information.
Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.6.2)
    at Logger.makeError (/app/node_modules/@ethersproject/logger/lib/index.js:233:21)
    at Logger.throwError (/app/node_modules/@ethersproject/logger/lib/index.js:242:20)
    at Logger.throwArgumentError (/app/node_modules/@ethersproject/logger/lib/index.js:245:21)
    at Function.BigNumber.from (/app/node_modules/@ethersproject/bignumber/lib/bignumber.js:239:23)
    at toBN (/app/node_modules/@ethersproject/bignumber/lib/bignumber.js:292:25)
    at BigNumber.add (/app/node_modules/@ethersproject/bignumber/lib/bignumber.js:57:43)
    at /app/node_modules/@opensea/seaport-js/lib/utils/order.js:151:43
    at Array.reduce (<anonymous>)
    at totalItemsAmount (/app/node_modules/@opensea/seaport-js/lib/utils/order.js:147:10)
    at Seaport.<anonymous> (/app/node_modules/@opensea/seaport-js/lib/seaport.js:285:76)
    at step (/app/node_modules/@opensea/seaport-js/lib/seaport.js:44:23)
    at Object.next (/app/node_modules/@opensea/seaport-js/lib/seaport.js:25:53)
    at fulfilled (/app/node_modules/@opensea/seaport-js/lib/seaport.js:16:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
        reason: 'invalid BigNumber value',
        code: 'INVALID_ARGUMENT',
        argument: 'value',
        value: undefined
    }

Duplicate issue #733: Error: All currency tokens in the order must be the same token
Created: 2022-09-10T00:46:42Z
Getting error above, using the following parameters to call "createBuyOrder":
seaport.createBuyOrder({
                asset: {
                    tokenId: 100,
                    tokenAddress: '0x8a90CAb2b38dba80c64b7734e58Ee1dB38B8992e'
                },
                accountAddress: walletProvider.getAddress(),
                startAmount:0.01,
            })

(Not the actual tokenID or startAmount). Full error message:
DEPRECATED: Please use providerUtils.standardizeOrThrow() instead
DEPRECATED: Please use providerUtils.standardizeOrThrow() instead
Error: All currency tokens in the order must be the same token
    at Seaport.<anonymous> (/Users/jpbm/nft-bot/node_modules/@opensea/seaport-js/lib/seaport.js:282:35)
    at step (/Users/jpbm/nft-bot/node_modules/@opensea/seaport-js/lib/seaport.js:44:23)
    at Object.next (/Users/jpbm/nft-bot/node_modules/@opensea/seaport-js/lib/seaport.js:25:53)
    at fulfilled (/Users/jpbm/nft-bot/node_modules/@opensea/seaport-js/lib/seaport.js:16:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Thank you!

Closing comment (2022-09-14T14:35:33Z): Related to #734
#740 might fix this as well.