Skip to content

Commit

Permalink
try add erc 20 templates to config obj
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ocean committed Sep 6, 2024
1 parent 92a5ff9 commit e245795
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/config/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export class Config {
*/
public nftFactoryAddress?: string

/**
* ERC20 templates addresses
*/
public eRC20Template?: any

/**
* datatokens ABI
* @type {string}
Expand Down
8 changes: 5 additions & 3 deletions src/config/ConfigHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export class ConfigHelper {
FixedPrice,
Dispenser,
ERC721Factory,
ERC20Template, // added to Config
OPFCommunityFeeCollector,
Ocean,
chainId,
Expand All @@ -217,6 +218,7 @@ export class ConfigHelper {
} = customAddresses[network]
configAddresses = {
nftFactoryAddress: ERC721Factory,
eRC20Template: ERC20Template, // added to Config
opfCommunityFeeCollector: OPFCommunityFeeCollector,
fixedRateExchangeAddress: FixedPrice,
dispenserAddress: Dispenser,
Expand Down Expand Up @@ -337,9 +339,9 @@ export class ConfigHelper {
)
: null
// test
if (addresses) {
console.log('config adding addresses: ', addresses)
}
// if (addresses) {
// console.log('config adding addresses: ', addresses)
// }
} catch (e) {
console.log(e)
addresses = null
Expand Down

0 comments on commit e245795

Please sign in to comment.