Set default params and jsonrpc in Web3Wrapper._sendRawPayloadAsync
This commit is contained in:
@@ -381,6 +381,8 @@ export class Web3Wrapper {
|
||||
const sendAsync = this._web3.currentProvider.sendAsync.bind(this._web3.currentProvider);
|
||||
const payloadWithDefaults = {
|
||||
id: this._jsonRpcRequestId++,
|
||||
params: [],
|
||||
jsonrpc: '2.0',
|
||||
...payload,
|
||||
};
|
||||
const response = await promisify<JSONRPCResponsePayload>(sendAsync)(payloadWithDefaults);
|
||||
|
||||
Reference in New Issue
Block a user