Transfers Parity
- Update `Transfer.Amount` type to be `Hbar`
@@ -4,12 +4,12 @@ import "github.com/hashgraph/hedera-sdk-go/proto"
type Transfer struct {
AccountID AccountID
- Amount int64
+ Amount Hbar
}
func transferFromProto(pb *proto.AccountAmount) Transfer {
return Transfer{
AccountID: accountIDFromProto(pb.AccountID),
- Amount: pb.Amount,
+ Amount: HbarFromTinybar(pb.Amount),
}
}
