Changing lastPriceToken in Token from string to Token
This commit is contained in:
parent
0e19edb1e3
commit
81422ffd65
|
@ -59,7 +59,7 @@ type Token @entity {
|
|||
"block number when it was created"
|
||||
block: Int!
|
||||
|
||||
lastPriceToken: String!
|
||||
lastPriceToken: Token
|
||||
lastPriceValue: BigDecimal!
|
||||
}
|
||||
|
||||
|
@ -278,7 +278,7 @@ type Order @entity {
|
|||
tx: String!
|
||||
block: Int!
|
||||
|
||||
lastPriceToken: Token!
|
||||
lastPriceToken: Token
|
||||
lastPriceValue: BigDecimal!
|
||||
estimatedUSDValue: BigDecimal!
|
||||
}
|
||||
|
|
|
@ -69,6 +69,7 @@ export function handleOrderStarted(event: OrderStarted): void {
|
|||
order.createdTimestamp
|
||||
)
|
||||
order.save()
|
||||
log.info('\n\n3 A. order.lastPriceToken: {}\n\n', [order.lastPriceToken])
|
||||
token.save()
|
||||
addOrder()
|
||||
if (token.nft) {
|
||||
|
|
Loading…
Reference in New Issue