Skip to content

Commit

Permalink
add ambire origin to gnosis response
Browse files Browse the repository at this point in the history
  • Loading branch information
ivopaunov committed Aug 1, 2024
1 parent f4bc57d commit 1e5ea93
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 1e5ea93

Please sign in to comment.