Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikaysaxena committed Dec 10, 2023
2 parents 7506a42 + f6fd7a2 commit 2acaf9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/snap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,18 @@ export const onRpcRequest: OnRpcRequestHandler = async ({
pvtKey,
address,
password, // tip: use hashed password here
network,
}: {
pvtKey: string;
address: string;
password: string;
network: string;
} = request.params;
await snap.request({
method: 'snap_manageState',
params: {
operation: 'update',
newState: { pvtKey, address, password },
newState: { pvtKey, address, password, network },
},
});
break;
Expand All @@ -182,6 +184,7 @@ export const onRpcRequest: OnRpcRequestHandler = async ({
pvtKey: string;
address: string;
password: string;
network: string;
} = await snap.request({
method: 'snap_manageState',
params: {
Expand Down

0 comments on commit 2acaf9a

Please sign in to comment.