diff --git a/src/modules/proxy-deployer/proxy-deployer.abi.service.ts b/src/modules/proxy-deployer/proxy-deployer.abi.service.ts index 577668567..982134c04 100644 --- a/src/modules/proxy-deployer/proxy-deployer.abi.service.ts +++ b/src/modules/proxy-deployer/proxy-deployer.abi.service.ts @@ -56,7 +56,10 @@ export class ProxyDeployerAbiService { const args: any[] = [new AddressValue(Address.fromString(process.env.TEMPLATE_MARKETPLACE_ADDRESS))]; if (paymentTokens) { args.push( - VariadicValue.fromItems(new U32Value(marketplaceFee), List.fromItems(paymentTokens?.map((tag) => BytesValue.fromUTF8(tag)))), + VariadicValue.fromItems( + new U32Value(marketplaceFee), + VariadicValue.fromItems(...paymentTokens?.map((paymentToken) => BytesValue.fromUTF8(paymentToken))), + ), ); } return contract.methods diff --git a/src/modules/proxy-deployer/tests/proxy-deployer.abi.service.spec.ts b/src/modules/proxy-deployer/tests/proxy-deployer.abi.service.spec.ts index 19dd5c766..102bfbcf7 100644 --- a/src/modules/proxy-deployer/tests/proxy-deployer.abi.service.spec.ts +++ b/src/modules/proxy-deployer/tests/proxy-deployer.abi.service.spec.ts @@ -76,7 +76,9 @@ describe('Proxy Deployer Abi Service', () => { describe('deployMarketplaceSc', () => { it('returns built transaction with right arguments', async () => { - const result = await service.deployMarketplaceSc('erd1dc3yzxxeq69wvf583gw0h67td226gu2ahpk3k50qdgzzym8npltq7ndgha', '10000'); + const result = await service.deployMarketplaceSc('erd1qqqqqqqqqqqqqpgq9ac9zvc4ugzrgqaqjqgjdhvxxtx7wu2eu00sxezym3', '1000', [ + 'WEGLD-a28c59', + ]); const expectedResult = { chainID: 'T',