From 49d590bc6aadb180568d4f46bffd4abf953774de Mon Sep 17 00:00:00 2001 From: nicholas ma Date: Thu, 5 Sep 2024 15:53:16 -0700 Subject: [PATCH 1/3] fix: added arconnect tag to ao transfers --- src/tokens/aoTokens/ao.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/tokens/aoTokens/ao.ts b/src/tokens/aoTokens/ao.ts index 3d25085e..648a9b70 100644 --- a/src/tokens/aoTokens/ao.ts +++ b/src/tokens/aoTokens/ao.ts @@ -15,6 +15,7 @@ import { } from "~utils/ao_import"; import type { Alarms } from "webextension-polyfill"; import type { KeystoneSigner } from "~wallets/hardware/keystone"; +import browser from "webextension-polyfill"; export type AoInstance = ReturnType; @@ -422,7 +423,9 @@ export const sendAoTransfer = async ( name: "Recipient", value: recipient }, - { name: "Quantity", value: amount } + { name: "Quantity", value: amount }, + { name: "Client", value: "ArConnect" }, + { name: "Client-Version", value: browser.runtime.getManifest().version } ] }); freeDecryptedWallet(decryptedWallet.keyfile); @@ -524,7 +527,9 @@ export const sendAoTransferKeystone = async ( name: "Recipient", value: recipient }, - { name: "Quantity", value: amount } + { name: "Quantity", value: amount }, + { name: "Client", value: "ArConnect" }, + { name: "Client-Version", value: browser.runtime.getManifest().version } ] }); return transferID; From 9fa355eb824bf1da8320d44f898d7ea387380880 Mon Sep 17 00:00:00 2001 From: nicholas ma Date: Tue, 10 Sep 2024 15:54:15 -0700 Subject: [PATCH 2/3] Revert "fix: added arconnect tag to ao transfers" --- src/tokens/aoTokens/ao.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/tokens/aoTokens/ao.ts b/src/tokens/aoTokens/ao.ts index 648a9b70..3d25085e 100644 --- a/src/tokens/aoTokens/ao.ts +++ b/src/tokens/aoTokens/ao.ts @@ -15,7 +15,6 @@ import { } from "~utils/ao_import"; import type { Alarms } from "webextension-polyfill"; import type { KeystoneSigner } from "~wallets/hardware/keystone"; -import browser from "webextension-polyfill"; export type AoInstance = ReturnType; @@ -423,9 +422,7 @@ export const sendAoTransfer = async ( name: "Recipient", value: recipient }, - { name: "Quantity", value: amount }, - { name: "Client", value: "ArConnect" }, - { name: "Client-Version", value: browser.runtime.getManifest().version } + { name: "Quantity", value: amount } ] }); freeDecryptedWallet(decryptedWallet.keyfile); @@ -527,9 +524,7 @@ export const sendAoTransferKeystone = async ( name: "Recipient", value: recipient }, - { name: "Quantity", value: amount }, - { name: "Client", value: "ArConnect" }, - { name: "Client-Version", value: browser.runtime.getManifest().version } + { name: "Quantity", value: amount } ] }); return transferID; From 61b28b30496ee3ab205e1021b6618d5ca87ba8fc Mon Sep 17 00:00:00 2001 From: nicholas ma Date: Tue, 10 Sep 2024 16:08:57 -0700 Subject: [PATCH 3/3] chore: fix commit --- src/tokens/aoTokens/ao.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/tokens/aoTokens/ao.ts b/src/tokens/aoTokens/ao.ts index 3d25085e..648a9b70 100644 --- a/src/tokens/aoTokens/ao.ts +++ b/src/tokens/aoTokens/ao.ts @@ -15,6 +15,7 @@ import { } from "~utils/ao_import"; import type { Alarms } from "webextension-polyfill"; import type { KeystoneSigner } from "~wallets/hardware/keystone"; +import browser from "webextension-polyfill"; export type AoInstance = ReturnType; @@ -422,7 +423,9 @@ export const sendAoTransfer = async ( name: "Recipient", value: recipient }, - { name: "Quantity", value: amount } + { name: "Quantity", value: amount }, + { name: "Client", value: "ArConnect" }, + { name: "Client-Version", value: browser.runtime.getManifest().version } ] }); freeDecryptedWallet(decryptedWallet.keyfile); @@ -524,7 +527,9 @@ export const sendAoTransferKeystone = async ( name: "Recipient", value: recipient }, - { name: "Quantity", value: amount } + { name: "Quantity", value: amount }, + { name: "Client", value: "ArConnect" }, + { name: "Client-Version", value: browser.runtime.getManifest().version } ] }); return transferID;