Skip to content

Commit

Permalink
Dont overwrite existing ID
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Oct 11, 2022
1 parent fc8c85b commit d99bd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rpc-methods/src/restricted/invokeSnap.ts
Expand Up @@ -97,7 +97,7 @@ export function getInvokeSnapImplementation({
const { params = [], method, context } = options;
const rawRequest = params[0];

const request = { ...rawRequest, jsonrpc: '2.0', id: nanoid() };
const request = { jsonrpc: '2.0', id: nanoid(), ...rawRequest };

if (!isJsonRpcRequest(request)) {
throw ethErrors.rpc.invalidParams({
Expand Down

0 comments on commit d99bd22

Please sign in to comment.