Skip to content

Commit a93eb03

Browse files
JustinJustin
Justin
authored and
Justin
committed
block object reward was being multiplied by 10 ** 8 and passing number 1.0-8 to number pipeling in block-detail.html
1 parent b08e82e commit a93eb03

File tree

5 files changed

+22
-45
lines changed

5 files changed

+22
-45
lines changed

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"postinstall": "npm run bootstrap && npm run compile",
99
"bootstrap": "./node_modules/.bin/lerna bootstrap",
1010
"insight": "cd packages/insight && npm start",
11+
"insight-previous": "cd ./packages/insight-previous && npm start",
1112
"node": "cd packages/bitcore-node && npm start",
1213
"bws": "cd packages/bitcore-wallet-service && npm start",
1314
"compile": "./node_modules/.bin/lerna run compile",

packages/insight-previous/package-lock.json

Lines changed: 6 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/insight-previous/src/pages/block-detail/block-detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2>Summary</h2>
3434
<ion-item>
3535
Block Reward
3636
<ion-note item-end>
37-
{{ currency.getConvertedNumber(block.reward) | number:'1.0-8' }} {{ currency.currencySymbol }}
37+
{{ currency.getConvertedNumber(block.reward) | number }} {{ currency.currencySymbol }}
3838
</ion-note>
3939
</ion-item>
4040
<ion-item>

packages/insight-previous/src/providers/blocks/blocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class BlocksProvider {
8080
poolName: block.minedBy,
8181
url: ''
8282
},
83-
reward: block.reward / 10 ** 8
83+
reward: block.reward
8484
};
8585
}
8686

0 commit comments

Comments
 (0)