From ec40adc977ae38547e40775b75793539174df4b8 Mon Sep 17 00:00:00 2001 From: Maciej Pilarczyk Date: Tue, 22 Mar 2022 15:01:25 +0100 Subject: [PATCH] Add account and metamask to context --- src/item.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/item.ts b/src/item.ts index 9575eff..3d37314 100644 --- a/src/item.ts +++ b/src/item.ts @@ -129,7 +129,8 @@ export default class AdsharesBanner implements IScript { "context": { "site": { "url": "https://" + this.getSceneId(parcel.land) + ".decentraland.org/", - "keywords": this.getSceneTags(parcel.land, props.keywords.split(",")) + "keywords": this.getSceneTags(parcel.land, props.keywords.split(",")), + "metamask": 1 }, "user": { "account": userAccount @@ -163,7 +164,11 @@ export default class AdsharesBanner implements IScript { page: { iid: request.view_id, url: request.context.site.url, - keywords: request.context.site.keywords + keywords: request.context.site.keywords, + metamask: request.context.site.metamask, + }, + user: { + account: request.context.user.account } } banner.click_url = addUrlParam(banner.click_url,