File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,14 @@ protected override void OnSystemLoaded(NeoSystem system)
87
87
public JToken GetApplicationLog ( JArray _params )
88
88
{
89
89
if ( _params == null || _params . Count == 0 )
90
- throw new RpcException ( - 32602 , "Invalid params" ) ;
90
+ throw new RpcException ( RpcError . InvalidParams ) ;
91
91
if ( UInt256 . TryParse ( _params [ 0 ] . AsString ( ) , out var hash ) )
92
92
{
93
93
var raw = BlockToJObject ( hash ) ;
94
94
if ( raw == null )
95
95
raw = TransactionToJObject ( hash ) ;
96
96
if ( raw == null )
97
- throw new RpcException ( - 100 , "Unknown transaction/blockhash" ) ;
97
+ throw new RpcException ( RpcError . InvalidParams . WithData ( "Unknown transaction/blockhash" ) ) ;
98
98
99
99
if ( _params . Count >= 2 && Enum . TryParse ( _params [ 1 ] . AsString ( ) , true , out TriggerType triggerType ) )
100
100
{
@@ -111,7 +111,7 @@ public JToken GetApplicationLog(JArray _params)
111
111
return raw ?? JToken . Null ;
112
112
}
113
113
else
114
- throw new RpcException ( - 32602 , "Invalid params" ) ;
114
+ throw new RpcException ( RpcError . InvalidParams ) ;
115
115
}
116
116
117
117
#endregion
You can’t perform that action at this time.
0 commit comments