From 6ba41cf718f95445e52d53099ec34fc2613a3764 Mon Sep 17 00:00:00 2001 From: coffee-converter Date: Wed, 16 Dec 2020 06:47:55 -0600 Subject: [PATCH] fixed user creation call --- src/mapping-wiseToken.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapping-wiseToken.ts b/src/mapping-wiseToken.ts index 3433f76..089ec9c 100644 --- a/src/mapping-wiseToken.ts +++ b/src/mapping-wiseToken.ts @@ -28,7 +28,7 @@ export function handleStakeStart (event: StakeStart): void { let referrerID = event.params.referralAddress.toHexString() let referrer = User.load(referrerID) if (referrer == null) { - referrer = new User(referrerID) + referrer = createUser(referrerID) global.userCount = global.userCount.plus(BigInt.fromI32(1)) } referrer.save()