epam / mintgate

1 stars 2 forks source link

`nft_on_approve` of `market` not working when called from `nft_approve` #38

Closed sxurik closed 3 years ago

sxurik commented 3 years ago

The call to nft_approve doesn't fail, but there is a message in the console: Error: Cannot find contract code for account merchant.... Except for this nft_approve performs as expected.

And we do not get the token which was approved from nft contract in the market contract's list of token approved for sale.

The failing test is located here - test/nft.test.ts:484. It skipped for now so that the whole test suit would not fail because of it.

sxurik commented 3 years ago

@acuarica you were right. I was passing the id of a user instead of the market-contract's id. Fixed it in #40.