kaspanet / rusty-kaspa

Kaspa full-node reference implementation and related libraries in the Rust programming language
ISC License
488 stars 153 forks source link

WASM RPC method type updates #572

Closed aspect closed 1 month ago

aspect commented 1 month ago

This PR fixes a minor issue with GetFeeEstimate and GetCurrentNetwork methods that were misplaced in the macro list and as a result produces a TypeScript signature requiring a request argument, while the request argument should be optional. (i.e. current signature is method(request) but it should be method(request?).

Currently, to invoke these functions user needs to pass an empty object { }. This change won't affect existing usage of these methods but moving forward will allow them to be invoked without an argument method().