OSDN Git Service

fix(chain-tx): fix omitempty in estimate_gas resp (#1792)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Fri, 18 Oct 2019 03:37:58 +0000 (11:37 +0800)
committerPaladz <yzhu101@uottawa.ca>
Fri, 18 Oct 2019 03:37:58 +0000 (11:37 +0800)
* fk

* do his mother a ticket

* init EstimateChainTxGas

* add sum up

* update

* fix maybe

* fix

* k

* ???

* ???

* do

* fix ci bug

* rename

* fix

* fix omitempty

blockchain/txbuilder/estimate.go

index 091c36d..7522b87 100644 (file)
@@ -26,7 +26,7 @@ type EstimateTxGasInfo struct {
        FlexibleNeu int64 `json:"flexible_neu"`
        StorageNeu  int64 `json:"storage_neu"`
        VMNeu       int64 `json:"vm_neu"`
-       ChainTxNeu  int64 `json:"chain_tx_neu,omitempty"`
+       ChainTxNeu  int64 `json:"chain_tx_neu"`
 }
 
 func EstimateChainTxGas(templates []Template) (*EstimateTxGasInfo, error) {