Skip to content

Commit

Permalink
fixed user creation call
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-converter committed Dec 16, 2020
1 parent 50a1761 commit 6ba41cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapping-wiseToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6ba41cf

Please sign in to comment.