OSDN Git Service
(root)
/
bytom
/
bytom-electron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5acbc3
)
fixed the gas calculation.
author
Zhiting Lin
<zlin035@uottawa.ca>
Tue, 9 Oct 2018 10:06:47 +0000
(18:06 +0800)
committer
Zhiting Lin
<zlin035@uottawa.ca>
Tue, 9 Oct 2018 10:06:47 +0000
(18:06 +0800)
src/features/transactions/components/Show.jsx
patch
|
blob
|
history
diff --git
a/src/features/transactions/components/Show.jsx
b/src/features/transactions/components/Show.jsx
index
003cf76
..
dff40ab
100644
(file)
--- a/
src/features/transactions/components/Show.jsx
+++ b/
src/features/transactions/components/Show.jsx
@@
-34,7
+34,7
@@
class Show extends BaseShow {
item.confirmations = confirmation
const btmOutput = item.outputs.reduce((sum, output) => {
- if (
output.type === 'control'
&& output.assetId === btmID) {
+ if (
(output.type === 'control' || output.type === 'retire')
&& output.assetId === btmID) {
sum += output.amount
}
return sum