Skip to content

Commit e0a2c56

Browse files
committed
[v1.0.2][FIX] balraw
1 parent 16176c7 commit e0a2c56

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

client.go

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,7 @@ func (c *Client) Send(toAddress, raw, seed string, index int) (string, error) {
381381
return "", err
382382
}
383383

384-
balRaw, err := BananoToRaw(info.ConfirmedBalance)
385-
386-
if err != nil {
387-
return "", err
388-
}
384+
balRaw := info.ConfirmedBalance
389385

390386
bal, ok := new(big.Int).SetString(balRaw, 10)
391387

@@ -467,11 +463,7 @@ func (c *Client) ChangeRepresentative(representative, seed string, index int) (s
467463
return "", err
468464
}
469465

470-
balRaw, err := BananoToRaw(info.ConfirmedBalance)
471-
472-
if err != nil {
473-
return "", err
474-
}
466+
balRaw := info.ConfirmedBalance
475467

476468
block := Block{
477469
Type: "state",
@@ -543,11 +535,7 @@ func (c *Client) Receive(hash, sourceAddress, raw, seed string, index int) (stri
543535
return "", err
544536
}
545537

546-
balRaw, err := BananoToRaw(info.ConfirmedBalance)
547-
548-
if err != nil {
549-
return "", err
550-
}
538+
balRaw := info.ConfirmedBalance
551539

552540
bal, ok := new(big.Int).SetString(balRaw, 10)
553541

0 commit comments

Comments
 (0)