Revert some tweaks.

This commit is contained in:
Maria Carmina 2023-03-15 17:11:35 +02:00
parent e79e9d35f7
commit 6578726ee6
2 changed files with 6 additions and 3 deletions

View File

@ -281,7 +281,6 @@ export function handleNftData(event: DataChanged): void {
if (data == null) { if (data == null) {
data = new NftData(id) data = new NftData(id)
} }
data.tx = event.transaction.hash.toHex()
data.key = event.params.key data.key = event.params.key
data.value = event.params.value data.value = event.params.value
data.nft = nft.id data.nft = nft.id

View File

@ -171,8 +171,10 @@ describe('Datatoken tests', async () => {
}) })
await sleep(2000) await sleep(2000)
const dt = (await initialResponse.json()).data.token const dt = (await initialResponse.json()).data.token
assert(dt !== undefined, 'undefined token')
const dtTx = dt.tx
const tx: TransactionReceipt = await web3.eth.getTransactionReceipt(dt.tx) const tx: TransactionReceipt = await web3.eth.getTransactionReceipt(dtTx)
assert(dt.id === datatokenAddress, 'incorrect value for: id') assert(dt.id === datatokenAddress, 'incorrect value for: id')
assert(dt.symbol, 'incorrect value for: symbol') assert(dt.symbol, 'incorrect value for: symbol')
assert(dt.name, 'incorrect value for: name') assert(dt.name, 'incorrect value for: name')
@ -279,8 +281,10 @@ describe('Datatoken tests', async () => {
}) })
await sleep(2000) await sleep(2000)
const dt = (await initialResponse.json()).data.token const dt = (await initialResponse.json()).data.token
assert(dt !== undefined, 'undefined token')
const dtTx = dt.tx
const tx: TransactionReceipt = await web3.eth.getTransactionReceipt(dt.tx) const tx: TransactionReceipt = await web3.eth.getTransactionReceipt(dtTx)
assert(dt.id === datatokenAddress, 'incorrect value for: id') assert(dt.id === datatokenAddress, 'incorrect value for: id')
assert(dt.symbol, 'incorrect value for: symbol') assert(dt.symbol, 'incorrect value for: symbol')
assert(dt.name, 'incorrect value for: name') assert(dt.name, 'incorrect value for: name')