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

Error: assertion failure with message: The taker marketplace is not a valid marketplace #1

Open
lurk24 opened this issue May 18, 2021 · 1 comment

Comments

@lurk24
Copy link

lurk24 commented May 18, 2021

I am trying to interact with the contract on wax and receiving this error:
Error: assertion failure with message: The taker marketplace is not a valid marketplace

The transaction was setup like this:

let txnAct1 = {
  "account":"atomicmarket",
  "name":"assertsale",
  "authorization":[
    {
    "actor": actor,
    "permission": permission
    }
  ],
  "data":{
    "sale_id": sale.sale_id,
    "asset_ids_to_assert": assetsToBuy,
    "listing_price_to_assert":formatToken(sale.price.amount, sale.price.token_precision)+' '+sale.price.token_symbol,
    "settlement_symbol_to_assert":sale.price.token_precision+','+sale.price.token_symbol
    }
  }
let txnAct2 = {
  "account":"eosio.token",
  "name":"transfer",
  "authorization":[
    {
      "actor": actor,
      "permission": permission
    }
  ],
  "data": {
  "from": actor,
  "to":"atomicmarket",
  "quantity": formatToken(sale.price.amount, sale.price.token_precision)+' '+sale.price.token_symbol,
  "memo":"deposit"
  }
}
let txnAct3 = {
"account":"atomicmarket",
"name":"purchasesale",
"authorization":[
    {
    "actor":actor,
    "permission":permission
    }
  ],
"data":{
  "buyer":actor,
  "sale_id":sale.sale_id,
  "intended_delphi_median":0,
  "taker_marketplace":"waxstats1111"
  }
}
transactionData = {
  'actions': [txnAct1, txnAct2, txnAct3],
}

I am trying to specify a taker_marketplace which seems to be the problem... I thought this was as simple as specifying any valid account, for example: waxstats1111 -- If this is wrong, what is needed to become a valid marketplace?

@jamesonsite
Copy link

use regmarket action with atomicmarket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants