Skip to content

Commit

Permalink
removes the hardcoded testnet currency metadata (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
AStox authored Dec 5, 2023
1 parent e9fb0e2 commit 4584078
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions centrifuge-js/src/modules/liquidityPools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,9 @@ export function getLiquidityPoolsModule(inst: Centrifuge) {
async function signPermit(args: [spender: string, currencyAddress: string, amount: BN]) {
const [spender, currencyAddress, amount] = args
if (!inst.config.evmSigner) throw new Error('EVM signer not set')
const chainId = await inst.config.evmSigner.getChainId()
const domain = { name: 'Centrifuge', version: '1', chainId, verifyingContract: currencyAddress }
const permit = await signERC2612Permit(
inst.config.evmSigner,
domain,
currencyAddress,
inst.getSignerAddress('evm'),
spender,
amount.toString()
Expand Down

0 comments on commit 4584078

Please sign in to comment.