@@ -43,10 +43,10 @@ func (bs SubChain) Serialize() ([]byte, error) {
43
43
DepositCount : bs .DepositCount ,
44
44
}
45
45
if bs .SecurityDeposit != nil {
46
- gen .SecurityDeposit = bs .SecurityDeposit .Bytes ()
46
+ gen .SecurityDeposit = bs .SecurityDeposit .String ()
47
47
}
48
48
if bs .OperationDeposit != nil {
49
- gen .OperationDeposit = bs .OperationDeposit .Bytes ()
49
+ gen .OperationDeposit = bs .OperationDeposit .String ()
50
50
}
51
51
return proto .Marshal (gen )
52
52
}
@@ -73,8 +73,8 @@ func (bs *SubChain) Deserialize(data []byte) error {
73
73
CurrentHeight : gen .CurrentHeight ,
74
74
DepositCount : gen .DepositCount ,
75
75
}
76
- bs .SecurityDeposit .SetBytes (gen .SecurityDeposit )
77
- bs .OperationDeposit .SetBytes (gen .OperationDeposit )
76
+ bs .SecurityDeposit .SetString (gen .SecurityDeposit , 10 )
77
+ bs .OperationDeposit .SetString (gen .OperationDeposit , 10 )
78
78
return nil
79
79
}
80
80
@@ -237,7 +237,7 @@ func (bs Deposit) Serialize() ([]byte, error) {
237
237
Confirmed : bs .Confirmed ,
238
238
}
239
239
if bs .Amount != nil {
240
- gen .Amount = bs .Amount .Bytes ()
240
+ gen .Amount = bs .Amount .String ()
241
241
}
242
242
return proto .Marshal (gen )
243
243
}
@@ -254,6 +254,6 @@ func (bs *Deposit) Deserialize(data []byte) error {
254
254
Addr : gen .Address ,
255
255
Confirmed : gen .Confirmed ,
256
256
}
257
- bs .Amount .SetBytes (gen .Amount )
257
+ bs .Amount .SetString (gen .Amount , 10 )
258
258
return nil
259
259
}
0 commit comments