From a672def5be45c9256855731b3673d298ce4424c5 Mon Sep 17 00:00:00 2001 From: Aristides Staffieri Date: Wed, 29 Nov 2023 13:13:38 -0700 Subject: [PATCH] use symbols instead of strings when subscribing to token events --- src/service/mercury/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/service/mercury/index.ts b/src/service/mercury/index.ts index 088b279..99a1271 100644 --- a/src/service/mercury/index.ts +++ b/src/service/mercury/index.ts @@ -172,19 +172,19 @@ export class MercuryClient { const transferToSub = { contract_id: contractId, max_single_size: 200, - topic1: nativeToScVal("transfer").toXDR("base64"), - topic2: nativeToScVal(pubKey).toXDR("base64"), + topic1: xdr.ScVal.scvSymbol("transfer").toXDR("base64"), + topic2: xdr.ScVal.scvSymbol(pubKey).toXDR("base64"), }; const transferFromSub = { contract_id: contractId, max_single_size: 200, - topic1: nativeToScVal("transfer").toXDR("base64"), - topic3: nativeToScVal(pubKey).toXDR("base64"), + topic1: xdr.ScVal.scvSymbol("transfer").toXDR("base64"), + topic3: xdr.ScVal.scvSymbol(pubKey).toXDR("base64"), }; const mintSub = { contract_id: contractId, max_single_size: 200, - topic1: nativeToScVal("mint").toXDR("base64"), + topic1: xdr.ScVal.scvSymbol("mint").toXDR("base64"), }; try {