diff --git a/CHANGELOG.md b/CHANGELOG.md index 68321af68..ed8bb6255 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.9.1 +*Dec 24th, 2018* + +BUG FIXES + +- [api] Fix create coin tx error + ## 0.9.0 *Dec 24th, 2018* diff --git a/api/block.go b/api/block.go index 6e4de950e..5eade5ff8 100644 --- a/api/block.go +++ b/api/block.go @@ -73,7 +73,7 @@ func Block(height int64) (*BlockResponse, error) { gas := tx.Gas() if tx.Type == transaction.TypeCreateCoin { - gas += tx.GetDecodedData().(transaction.CreateCoinData).Commission() + gas += tx.GetDecodedData().(*transaction.CreateCoinData).Commission() } txs[i] = BlockTransactionResponse{ diff --git a/api/transaction.go b/api/transaction.go index d8481e120..68f642ac3 100644 --- a/api/transaction.go +++ b/api/transaction.go @@ -33,7 +33,7 @@ func Transaction(hash []byte) (*TransactionResponse, error) { gas := decodedTx.Gas() if decodedTx.Type == transaction.TypeCreateCoin { - gas += decodedTx.GetDecodedData().(transaction.CreateCoinData).Commission() + gas += decodedTx.GetDecodedData().(*transaction.CreateCoinData).Commission() } return &TransactionResponse{ diff --git a/api/transactions.go b/api/transactions.go index ff3b2fb11..d04da9b82 100644 --- a/api/transactions.go +++ b/api/transactions.go @@ -57,7 +57,7 @@ func Transactions(query string) (*[]TransactionResponse, error) { gas := decodedTx.Gas() if decodedTx.Type == transaction.TypeCreateCoin { - gas += decodedTx.GetDecodedData().(transaction.CreateCoinData).Commission() + gas += decodedTx.GetDecodedData().(*transaction.CreateCoinData).Commission() } result[i] = TransactionResponse{ diff --git a/docker-compose.yml b/docker-compose.yml index f861af323..bb9704dac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: "3.4" services: minter: - image: minterteam/minter:0.9.0 + image: minterteam/minter:0.9.1 volumes: - ~/.minter:/minter ports: diff --git a/version/version.go b/version/version.go index 29b22021d..acee17ef4 100755 --- a/version/version.go +++ b/version/version.go @@ -4,14 +4,14 @@ package version const ( Maj = "0" Min = "9" - Fix = "0" + Fix = "1" AppVer = 1 ) var ( // Must be a string because scripts like dist.sh read this file. - Version = "0.9.0" + Version = "0.9.1" // GitCommit is the current HEAD set using ldflags. GitCommit string