1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

set metadata updates

This commit is contained in:
Bogdan Fazakas 2023-03-27 14:49:18 +03:00
parent bc6f098329
commit a09c874f95

View File

@ -797,8 +797,14 @@ describe('Marketplace flow tests', async () => {
const nft = new Nft(publisherAccount) const nft = new Nft(publisherAccount)
const data = 'SomeData' const data = 'SomeData'
try { try {
await nft.setData(freNftAddress, await publisherAccount.getAddress(), '1', data) await nft.setData(
freNftAddress,
await publisherAccount.getAddress(),
'0x1234',
data
)
} catch (e) { } catch (e) {
console.log('e = ', e)
assert.fail('Failed to set data in NFT ERC725 key value store', e) assert.fail('Failed to set data in NFT ERC725 key value store', e)
} }
/// ``` /// ```
@ -811,13 +817,14 @@ describe('Marketplace flow tests', async () => {
/// ```Typescript /// ```Typescript
try { try {
const response = await nft.getData(freNftAddress, '1') const response = await nft.getData(freNftAddress, '0x1234')
console.log('getData response: ', response) console.log('getData response: ', response)
assert( assert(
response === data, response === data,
'Wrong data received when getting data from NFT ERC725 key value store' 'Wrong data received when getting data from NFT ERC725 key value store'
) )
} catch (e) { } catch (e) {
console.log('e = ', e)
assert.fail('Failed to get data from NFT ERC725 key value store', e) assert.fail('Failed to get data from NFT ERC725 key value store', e)
} }
/// ``` /// ```