diff --git a/dist/esm/index.evm.js b/dist/esm/index.evm.js
index b7c28bf..c5ae38c 100644
--- a/dist/esm/index.evm.js
+++ b/dist/esm/index.evm.js
@@ -6653,11 +6653,10 @@ class Worldapp {
return new Promise((resolve, reject)=>{
MiniKit.subscribe(ResponseEvent.MiniAppSignMessage, async (payload) => {
- window._debug(`PAYLOAD: ${JSON.stringify(payload)}`);
if (payload.status === "error") {
return reject()
} else {
- return resolve()
+ return resolve(payload.signature)
}
});
diff --git a/dist/esm/index.js b/dist/esm/index.js
index 0849ffa..5c821ec 100644
--- a/dist/esm/index.js
+++ b/dist/esm/index.js
@@ -2312,11 +2312,10 @@ class Worldapp {
return new Promise((resolve, reject)=>{
MiniKit.subscribe(ResponseEvent.MiniAppSignMessage, async (payload) => {
- window._debug(`PAYLOAD: ${JSON.stringify(payload)}`);
if (payload.status === "error") {
return reject()
} else {
- return resolve()
+ return resolve(payload.signature)
}
});
diff --git a/dist/umd/index.evm.js b/dist/umd/index.evm.js
index 886b9de..6104854 100644
--- a/dist/umd/index.evm.js
+++ b/dist/umd/index.evm.js
@@ -6657,11 +6657,10 @@
return new Promise((resolve, reject)=>{
MiniKit.subscribe(ResponseEvent.MiniAppSignMessage, async (payload) => {
- window._debug(`PAYLOAD: ${JSON.stringify(payload)}`);
if (payload.status === "error") {
return reject()
} else {
- return resolve()
+ return resolve(payload.signature)
}
});
diff --git a/dist/umd/index.js b/dist/umd/index.js
index c72815c..2bcafb5 100644
--- a/dist/umd/index.js
+++ b/dist/umd/index.js
@@ -2314,11 +2314,10 @@
return new Promise((resolve, reject)=>{
worldcoinPrecompiled.MiniKit.subscribe(worldcoinPrecompiled.ResponseEvent.MiniAppSignMessage, async (payload) => {
- window._debug(`PAYLOAD: ${JSON.stringify(payload)}`);
if (payload.status === "error") {
return reject()
} else {
- return resolve()
+ return resolve(payload.signature)
}
});
diff --git a/src/wallets/Worldapp.js b/src/wallets/Worldapp.js
index 9064e91..04cdc16 100644
--- a/src/wallets/Worldapp.js
+++ b/src/wallets/Worldapp.js
@@ -114,11 +114,10 @@ export default class Worldapp {
return new Promise((resolve, reject)=>{
MiniKit.subscribe(ResponseEvent.MiniAppSignMessage, async (payload) => {
- window._debug(`PAYLOAD: ${JSON.stringify(payload)}`)
if (payload.status === "error") {
return reject()
} else {
- return resolve()
+ return resolve(payload.signature)
}
})