Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3151210
D5152.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
657 B
Referenced Files
None
Subscribers
None
D5152.diff
View Options
diff --git a/landing/siwe.react.js b/landing/siwe.react.js
--- a/landing/siwe.react.js
+++ b/landing/siwe.react.js
@@ -53,10 +53,10 @@
async function signInWithEthereum(address, signer) {
const message = createSiweMessage(address, 'Sign in to Comm with Ethereum');
- const signedMessage = await signer.signMessage(message);
- const messageToPost = JSON.stringify({ address, signer });
+ const signature = await signer.signMessage(message);
+ const messageToPost = JSON.stringify({ address, signature });
window.ReactNativeWebView?.postMessage?.(messageToPost);
- return signedMessage;
+ return signature;
}
function SIWE(): React.Node {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 2:07 AM (11 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2427380
Default Alt Text
D5152.diff (657 B)
Attached To
Mode
D5152: [landing] changed webview bridge message to include signature
Attached
Detach File
Event Timeline
Log In to Comment