OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
feat: add cross-chain output (#56)
[bytom/vapor.git]
/
blockchain
/
txbuilder
/
finalize.go
diff --git
a/blockchain/txbuilder/finalize.go
b/blockchain/txbuilder/finalize.go
index
75316c6
..
a00440f
100644
(file)
--- a/
blockchain/txbuilder/finalize.go
+++ b/
blockchain/txbuilder/finalize.go
@@
-145,8
+145,8
@@
func CalculateTxFee(tx *types.Tx) (fee uint64) {
}
for _, output := range tx.Outputs {
- if *output.AssetId == *consensus.BTMAssetID {
- totalOutputBTM += output.Amount
+ if *output.Asset
Amount().Asset
Id == *consensus.BTMAssetID {
+ totalOutputBTM += output.A
ssetAmount().A
mount
}
}