This commit is contained in:
Jennifer Wang 2021-10-26 19:42:57 -04:00
parent 18834de7d0
commit 0fc1239445

View File

@ -3,10 +3,11 @@ package types
import (
"encoding"
"fmt"
"github.com/filecoin-project/go-state-types/abi"
"math/big"
"strings"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/lotus/build"
)
@ -123,7 +124,6 @@ func ParseFIL(s string) (FIL, error) {
return FIL{r.Num()}, nil
}
func ParseAttoFilToFIL(atto abi.TokenAmount) string {
vfil := big.NewFloat(0)
vfil.Add(vfil, new(big.Float).SetInt(atto.Int))