[#168] sdk/accounting: Refactor Decimal type
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
e721734599
commit
52fae76533
4 changed files with 62 additions and 6 deletions
|
@ -27,7 +27,7 @@ func TestExample(t *testing.T) {
|
|||
resp, err := cli.GetSelfBalance(context.Background())
|
||||
require.NoError(t, err)
|
||||
|
||||
fmt.Println(resp.GetValue(), resp.GetPrecision())
|
||||
fmt.Println(resp.Value(), resp.Precision())
|
||||
|
||||
// create client from grpc connection
|
||||
conn, err := grpc.DialContext(context.Background(), target, grpc.WithBlock(), grpc.WithInsecure())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue