converted to hex and add toString.

This commit is contained in:
Maria Carmina 2023-04-10 16:06:13 +03:00
parent bb139b537e
commit 585c440ca1
2 changed files with 3 additions and 3 deletions

View File

@ -263,7 +263,7 @@ export function handleProviderFee(event: ProviderFee): void {
const order = searchOrderForEvent(
event.transaction.hash.toHex(),
event.address.toHexString(),
event.address.toHex(),
event.transaction.from.toHex(),
event.logIndex.toI32()
)
@ -275,7 +275,7 @@ export function handleProviderFee(event: ProviderFee): void {
} else {
const orderReuse = searchOrderResusedForEvent(
event.transaction.hash.toHex(),
event.address.toHexString(),
event.address.toHex(),
event.logIndex.toI32()
)
if (orderReuse) {

View File

@ -52,7 +52,7 @@ export function searchOrderForEvent(
)
log.info('orderId as trial: {}', [orderId])
const order = Order.load(orderId)
if (order !== null && order.datatoken === address) {
if (order !== null && order.datatoken === address.toString()) {
log.info('order datatoken: {}', [order.datatoken])
log.info('event address: {}', [address])
log.info('typeof order datatoken: {}', [typeof order.datatoken])