Skip to content

Commit

Permalink
rename methods
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Jul 23, 2024
1 parent 3289e3d commit 733ac2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/vue-example/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ const signMessage = async () => {
const signMpcMessage = async () => {
if (!ethereumPrivateKeyProvider.value?.provider) throw new Error("provider not set");
const signedMessage = await ethWeb3.ethSignTypedMessage(ethereumPrivateKeyProvider.value.provider);
const signedMessage = await ethWeb3.ethSignMpcMessage(ethereumPrivateKeyProvider.value.provider);
printToConsole("Signed Message", signedMessage);
};
Expand Down
4 changes: 2 additions & 2 deletions examples/vue-example/src/lib/ethWeb3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export const signTypedData_v1 = async (provider: SafeEventEmitterProvider): Prom
});
};

export const ethSignTypedMessage = async (provider: SafeEventEmitterProvider) => {
export const ethSignMpcMessage = async (provider: SafeEventEmitterProvider) => {
const web3 = new BrowserProvider(provider as any);
const accounts = await web3.listAccounts();
// hex message
const message = "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad";
const sign = await accounts[0].signMessage(message);
const sign = await accounts[0]._legacySignMessage(message);
return sign;
};

Expand Down

0 comments on commit 733ac2d

Please sign in to comment.