Skip to content

Commit

Permalink
Format zero bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Dec 20, 2023
1 parent 45651b6 commit 55a2ec0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions centrifuge-js/src/modules/liquidityPools.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BigNumber } from '@ethersproject/bignumber'
import { HashZero } from '@ethersproject/constants'
import { Contract, ContractInterface } from '@ethersproject/contracts'
import type { JsonRpcProvider, TransactionRequest, TransactionResponse } from '@ethersproject/providers'
import { formatBytes32String } from '@ethersproject/strings'
import BN from 'bn.js'
import { signERC2612Permit } from 'eth-permit'
import { combineLatestWith, firstValueFrom, from, map, startWith, switchMap } from 'rxjs'
Expand Down Expand Up @@ -141,7 +141,7 @@ export function getLiquidityPoolsModule(inst: Centrifuge) {
const [lpAddress, order] = args
const user = inst.getSignerAddress('evm')
return pending(
contract(lpAddress, ABI.LiquidityPool).requestDeposit(order.toString(), user, user, HashZero, {
contract(lpAddress, ABI.LiquidityPool).requestDeposit(order.toString(), user, user, formatBytes32String(''), {
...options,
gasLimit: 300000,
})
Expand All @@ -152,7 +152,7 @@ export function getLiquidityPoolsModule(inst: Centrifuge) {
const [lpAddress, order] = args
const user = inst.getSignerAddress('evm')
return pending(
contract(lpAddress, ABI.LiquidityPool).requestRedeem(order.toString(), user, user, HashZero, {
contract(lpAddress, ABI.LiquidityPool).requestRedeem(order.toString(), user, user, formatBytes32String(''), {
...options,
gasLimit: 300000,
})
Expand All @@ -169,7 +169,7 @@ export function getLiquidityPoolsModule(inst: Centrifuge) {
contract(lpAddress, ABI.LiquidityPool).requestDepositWithPermit(
order.toString(),
user,
HashZero,
formatBytes32String(''),
deadline,
v,
r,
Expand Down

0 comments on commit 55a2ec0

Please sign in to comment.