diff --git a/packages/http/src/models/Reward.ts b/packages/http/src/models/Reward.ts index ddb43c46..95ea8547 100644 --- a/packages/http/src/models/Reward.ts +++ b/packages/http/src/models/Reward.ts @@ -5,6 +5,7 @@ import Client from '../Client' export type RewardData = Omit export interface HTTPReward { + type: string account: string amount: number block: number @@ -20,6 +21,8 @@ function integerToBalance(integerValue: number): Balance { export default class Reward extends DataModel { private client: Client + public type: string + public account: string public amount: Balance @@ -35,6 +38,7 @@ export default class Reward extends DataModel { constructor(client: Client, rewards: HTTPReward) { super() this.client = client + this.type = rewards.type this.account = rewards.account this.amount = integerToBalance(rewards.amount) this.block = rewards.block