mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
remove unused oceanAddress parameter
This commit is contained in:
parent
3f71d95766
commit
4dcb8a72ef
@ -17,7 +17,6 @@ import { PriceAndFees, FeesInfo, FixedPriceExchange } from '../../@types'
|
|||||||
|
|
||||||
export class FixedRateExchange {
|
export class FixedRateExchange {
|
||||||
/** Ocean related functions */
|
/** Ocean related functions */
|
||||||
public oceanAddress: string = null
|
|
||||||
public fixedRateAddress: string
|
public fixedRateAddress: string
|
||||||
public fixedRateExchangeAbi: AbiItem | AbiItem[]
|
public fixedRateExchangeAbi: AbiItem | AbiItem[]
|
||||||
public web3: Web3
|
public web3: Web3
|
||||||
@ -36,14 +35,12 @@ export class FixedRateExchange {
|
|||||||
fixedRateAddress: string,
|
fixedRateAddress: string,
|
||||||
network?: string | number,
|
network?: string | number,
|
||||||
fixedRateExchangeAbi: AbiItem | AbiItem[] = null,
|
fixedRateExchangeAbi: AbiItem | AbiItem[] = null,
|
||||||
oceanAddress: string = null,
|
|
||||||
config?: Config
|
config?: Config
|
||||||
) {
|
) {
|
||||||
this.web3 = web3
|
this.web3 = web3
|
||||||
this.config = config || new ConfigHelper().getConfig(network || 'unknown')
|
this.config = config || new ConfigHelper().getConfig(network || 'unknown')
|
||||||
this.fixedRateExchangeAbi =
|
this.fixedRateExchangeAbi =
|
||||||
fixedRateExchangeAbi || (defaultFixedRateExchangeAbi.abi as AbiItem[])
|
fixedRateExchangeAbi || (defaultFixedRateExchangeAbi.abi as AbiItem[])
|
||||||
this.oceanAddress = oceanAddress
|
|
||||||
this.fixedRateAddress = fixedRateAddress
|
this.fixedRateAddress = fixedRateAddress
|
||||||
this.fixedRateContract = setContractDefaults(
|
this.fixedRateContract = setContractDefaults(
|
||||||
new this.web3.eth.Contract(this.fixedRateExchangeAbi, this.fixedRateAddress),
|
new this.web3.eth.Contract(this.fixedRateExchangeAbi, this.fixedRateAddress),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user