Skip to content

Commit

Permalink
Merge pull request #1632 from AmbireTech/gnosis-app-origin
Browse files Browse the repository at this point in the history
add ambire origin to gnosis response
  • Loading branch information
stojnovsky authored Aug 6, 2024
2 parents f4bc57d + 1e5ea93 commit b4eae1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/GnosisConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ function GnosisConnector(_iframeRef, _app) {

this.send = (data, requestId, error) => {
const sdkVersion = getSDKVersion()
const withOrigin = { ...data, origin: 'app.ambire.wallet' }
const msg = error
? MessageFormatter.makeErrorResponse(requestId, error, sdkVersion)
: MessageFormatter.makeResponse(requestId, data, sdkVersion)
: MessageFormatter.makeResponse(requestId, withOrigin, sdkVersion)

if (this.iframeRef) {
// console.log("Posting to child")
Expand Down

0 comments on commit b4eae1a

Please sign in to comment.