[#168] sdk/accounting: Refactor Decimal type

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-13 13:36:18 +03:00 committed by Alex Vanin
parent e721734599
commit 52fae76533
4 changed files with 62 additions and 6 deletions

View file

@ -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())