File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/payment-detection/src Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,10 @@ export class ERC20FeeProxyPaymentDetector<
161161
162162 protected getTheGraphInfoRetriever (
163163 paymentChain : TChain ,
164- subgraphClient : TheGraphClient | TheGraphClient < CurrencyTypes . NearChainName > ,
164+ subgraphClient :
165+ | TheGraphClient
166+ | TheGraphClient < CurrencyTypes . NearChainName >
167+ | TheGraphClient < CurrencyTypes . TronChainName > ,
165168 ) : TheGraphInfoRetriever | NearInfoRetriever {
166169 const graphInfoRetriever = EvmChains . isChainSupported ( paymentChain )
167170 ? new TheGraphInfoRetriever ( subgraphClient as TheGraphClient , this . currencyManager )
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export class TronERC20FeeProxyPaymentDetector extends ERC20FeeProxyPaymentDetect
4848 public static getDeploymentInformation (
4949 network : CurrencyTypes . VMChainName ,
5050 _paymentNetworkVersion ?: string ,
51- ) : { address : string ; creationBlockNumber : number } {
51+ ) : { address : string ; creationBlockNumber : number ; contractVersion : string } {
5252 void _paymentNetworkVersion ; // Parameter kept for API compatibility
5353
5454 // Validate that the network is a TRON chain
@@ -66,7 +66,7 @@ export class TronERC20FeeProxyPaymentDetector extends ERC20FeeProxyPaymentDetect
6666 ? 79216121 // TRON mainnet
6767 : 63208782 ; // Nile testnet
6868
69- return { address, creationBlockNumber } ;
69+ return { address, creationBlockNumber, contractVersion : 'tron' } ;
7070 }
7171
7272 /**
You can’t perform that action at this time.
0 commit comments