0 -> BigInt.zero().

This commit is contained in:
Maria Carmina 2023-03-15 21:46:29 +02:00
parent fda059f401
commit bd3c5c5054
2 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ export function createToken(address: Address, isDatatoken: boolean): Token {
token.createdTimestamp = 0
token.block = 0
token.tx = ''
token.eventIndex = 0
token.eventIndex = BigInt.zero()
token.save()
return token
}
@ -61,7 +61,7 @@ export function createNftToken(address: Address): Nft {
token.tx = ''
token.orderCount = BigInt.zero()
token.hasMetadata = false
token.eventIndex = 0
token.eventIndex = BigInt.zero()
token.save()
addNft()
return token
@ -95,7 +95,7 @@ export function getNftTokenWithID(tokenId: string): Nft {
nftToken.tx = ''
nftToken.orderCount = BigInt.zero()
nftToken.hasMetadata = false
nftToken.eventIndex = 0
nftToken.eventIndex = BigInt.zero()
nftToken.save()
addNft()
}

View File

@ -21,7 +21,7 @@ export function getveOCEAN(id: string): VeOCEAN {
ve.unlockTime = BigInt.zero()
ve.lockedAmount = BigDecimal.zero()
ve.block = 0
ve.eventIndex = 0
ve.eventIndex = BigInt.zero()
ve.save()
}
@ -138,7 +138,7 @@ export function getveDelegation(id: string): VeDelegation {
veDelegation.receiver = ''
veDelegation.delegator = ''
veDelegation.block = 0
veDelegation.eventIndex = 0
veDelegation.eventIndex = BigInt.zero()
veDelegation.save()
}
return veDelegation
@ -157,7 +157,7 @@ export function getDeposit(id: string): VeDeposit {
deposit.timestamp = BigInt.zero()
deposit.tx = ''
deposit.block = 0
deposit.eventIndex = 0
deposit.eventIndex = BigInt.zero()
// do not save it
// deposit.save()
}