(VDB-249) Update numerical values for Vat.fold

- convert rate to ray
This commit is contained in:
Rob Mulholand
2018-12-07 11:24:06 -06:00
parent b922e73bf9
commit 4a5765b20d
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ import (
"errors"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared/constants"
)
@@ -35,7 +36,7 @@ func (VatFoldConverter) ToModels(ethLogs []types.Log) ([]interface{}, error) {
ilk := string(bytes.Trim(ethLog.Topics[1].Bytes(), "\x00"))
urn := common.BytesToAddress(ethLog.Topics[2].Bytes()).String()
rate := ethLog.Topics[3].Big().String()
rate := shared.ConvertToRay(ethLog.Topics[3].Big().String())
raw, err := json.Marshal(ethLog)
if err != nil {