Skip to content

Commit 14cc6be

Browse files
authored
chore(signMessage): bump ordit to cater for bip-322-simple (#131)
1 parent 59d0d16 commit 14cc6be

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/ord-connect/src/lib/signMessage.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ export default async function signMessage({
1717
network,
1818
}: SignMessageParams): Promise<string> {
1919
if (wallet === Wallet.UNISAT) {
20-
const signedMessage = await ordit.unisat.signMessage(message);
20+
const signedMessage = await ordit.unisat.signMessage(
21+
message,
22+
"bip322-simple",
23+
);
2124
return signedMessage.base64;
2225
}
2326

packages/ord-connect/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function SampleComponent() {
7171
onClick={async () => {
7272
const signed = await signMsg(
7373
address.ordinals,
74-
"Authenticate this message to access all the functionalities of Ordzaar. By using Ordzaar implies your consent to our user agreement.\n\nDomain: ordzaar.com\n\nBlockchain: Bitcoin \n\nAccount:\nmj4Bo243eA2MdLo1dcd7xPDjqjccEVzxby\n\nNonce: F5wt4JUVc3",
74+
"Authenticate this message to access all the functionalities of Ordzaar. By using Ordzaar implies your consent to our user agreement.\n\nDomain: ordzaar.com\n\nBlockchain: Bitcoin \n\nAccount:\ntb1q82avu57rf0xe4wgrkudwa0ewrh7mfrsejkum3h\n\nNonce: 4NfCJ3FEDQ",
7575
);
7676
console.log(signed);
7777
}}

0 commit comments

Comments
 (0)