permissioned-markets-quickstart icon indicating copy to clipboard operation
permissioned-markets-quickstart copied to clipboard

cannot place order to permissioned market due to unowned mints

Open austinmilt opened this issue 2 years ago • 0 comments

I'm running this project locally (yarn localnet) and interacting with the market using @project-serum/serum-ts (Market).

I am getting the following error on market.makePlaceOrderTransaction(connection, order):

SolanaJSONRPCError: failed to get token accounts owned by account <my test wallet>: Invalid param: could not find mint
    at Connection.getTokenAccountsByOwner (/home/austin/personal/serum-permissioned-ui/node_modules/@solana/web3.js/lib/index.cjs.js:6278:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Market.getTokenAccountsByOwnerForMint (/home/austin/personal/serum-permissioned-ui/node_modules/@project-serum/serum/lib/market.js:207:17)
    at async Market.findFeeDiscountKeys (/home/austin/personal/serum-permissioned-ui/node_modules/@project-serum/serum/lib/market.js:293:35)
    at async Market.findBestFeeDiscountKey (/home/austin/personal/serum-permissioned-ui/node_modules/@project-serum/serum/lib/market.js:338:26)
    at async Market.makePlaceOrderTransaction (/home/austin/personal/serum-permissioned-ui/node_modules/@project-serum/serum/lib/market.js:364:37)
    at async getData (webpack-internal:///(api)/./pages/api/order.ts:44:13) {
  code: -32602,
  data: undefined
}

The mint that's missing is the msrm_token defined in the serum dex dependency (MSRMcoVyrFxnSgo5uXwone5SKcGhT1KEJMFEkMEWf9L)

Is this due to using old code, or are there additional steps I need to take to register my test wallet on the market and start placing orders?

austinmilt avatar Jul 20 '22 03:07 austinmilt