File tree 4 files changed +7
-11
lines changed
4 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,9 @@ describe('JSON-RPC Provider', () => {
49
49
} ;
50
50
51
51
const mockABCIResponse : ABCIResponse = mock < ABCIResponse > ( ) ;
52
- mockABCIResponse . response . ResponseBase = {
53
- Log : '' ,
54
- Info : '' ,
55
- Error : null ,
56
- Events : null ,
57
- Data : stringToBase64 ( JSON . stringify ( mockSimulateResponse ) ) ,
58
- } ;
52
+ mockABCIResponse . response . Value = stringToBase64 (
53
+ JSON . stringify ( mockSimulateResponse )
54
+ ) ;
59
55
60
56
mockedAxios . post . mockResolvedValue ( {
61
57
data : newResponse < ABCIResponse > ( mockABCIResponse ) ,
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export class JSONRPCProvider implements Provider {
62
62
) ;
63
63
64
64
const simulateResult = extractSimulateFromResponse (
65
- abciResponse . response . ResponseBase . Data
65
+ abciResponse . response . Value
66
66
) ;
67
67
return simulateResult . GasUsed ;
68
68
}
Original file line number Diff line number Diff line change @@ -103,13 +103,13 @@ describe('WS Provider', () => {
103
103
Height : '' ,
104
104
Key : '' ,
105
105
Proof : null ,
106
- Value : null ,
106
+ Value : stringToBase64 ( JSON . stringify ( mockSimulateResponse ) ) ,
107
107
ResponseBase : {
108
108
Log : '' ,
109
109
Info : '' ,
110
110
Error : null ,
111
111
Events : null ,
112
- Data : stringToBase64 ( JSON . stringify ( mockSimulateResponse ) ) ,
112
+ Data : '' ,
113
113
} ,
114
114
} ,
115
115
} ;
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export class WSProvider implements Provider {
165
165
const abciResponse = this . parseResponse < ABCIResponse > ( response ) ;
166
166
167
167
const simulateResult = extractSimulateFromResponse (
168
- abciResponse . response . ResponseBase . Data
168
+ abciResponse . response . Value
169
169
) ;
170
170
return simulateResult . GasUsed ;
171
171
}
You can’t perform that action at this time.
0 commit comments