mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
cleanups and warnings
This commit is contained in:
parent
bd82c939a7
commit
89b83221de
@ -142,7 +142,7 @@ export class Aquarius {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
signal: signal
|
signal
|
||||||
})
|
})
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
@ -174,7 +174,7 @@ export class Aquarius {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
signal: signal
|
signal
|
||||||
})
|
})
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
@ -163,7 +163,7 @@ export class Provider {
|
|||||||
providerUri,
|
providerUri,
|
||||||
providerEndpoints
|
providerEndpoints
|
||||||
)
|
)
|
||||||
const args = { did: did, serviceId: serviceId, checksum: withChecksum }
|
const args = { did, serviceId, checksum: withChecksum }
|
||||||
const files: FileInfo[] = []
|
const files: FileInfo[] = []
|
||||||
const path = this.getEndpointURL(serviceEndpoints, 'fileinfo')
|
const path = this.getEndpointURL(serviceEndpoints, 'fileinfo')
|
||||||
? this.getEndpointURL(serviceEndpoints, 'fileinfo').urlPath
|
? this.getEndpointURL(serviceEndpoints, 'fileinfo').urlPath
|
||||||
@ -203,7 +203,7 @@ export class Provider {
|
|||||||
providerUri,
|
providerUri,
|
||||||
providerEndpoints
|
providerEndpoints
|
||||||
)
|
)
|
||||||
const args = { url: url, type: 'url' }
|
const args = { url, type: 'url' }
|
||||||
const files: FileInfo[] = []
|
const files: FileInfo[] = []
|
||||||
const path = this.getEndpointURL(serviceEndpoints, 'fileinfo')
|
const path = this.getEndpointURL(serviceEndpoints, 'fileinfo')
|
||||||
? this.getEndpointURL(serviceEndpoints, 'fileinfo').urlPath
|
? this.getEndpointURL(serviceEndpoints, 'fileinfo').urlPath
|
||||||
|
@ -110,7 +110,7 @@ export async function sendTx(
|
|||||||
...args: any[]
|
...args: any[]
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
const sendTxValue: Record<string, any> = {
|
const sendTxValue: Record<string, any> = {
|
||||||
from: from,
|
from,
|
||||||
gas: estGas + 1
|
gas: estGas + 1
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@ -5,7 +5,6 @@ import BigNumber from 'bignumber.js'
|
|||||||
import {
|
import {
|
||||||
amountToUnits,
|
amountToUnits,
|
||||||
calculateEstimatedGas,
|
calculateEstimatedGas,
|
||||||
getFairGasPrice,
|
|
||||||
unitsToAmount,
|
unitsToAmount,
|
||||||
minAbi,
|
minAbi,
|
||||||
sendTx,
|
sendTx,
|
||||||
|
@ -15,7 +15,6 @@ import {
|
|||||||
Datatoken
|
Datatoken
|
||||||
} from '../../src'
|
} from '../../src'
|
||||||
import { FreCreationParams, DatatokenCreateParams } from '../../src/@types'
|
import { FreCreationParams, DatatokenCreateParams } from '../../src/@types'
|
||||||
import { Contract } from 'web3-eth-contract'
|
|
||||||
|
|
||||||
describe('Fixed Rate unit test', () => {
|
describe('Fixed Rate unit test', () => {
|
||||||
let factoryOwner: string
|
let factoryOwner: string
|
||||||
@ -26,7 +25,6 @@ describe('Fixed Rate unit test', () => {
|
|||||||
let contracts: Addresses
|
let contracts: Addresses
|
||||||
let fixedRate: FixedRateExchange
|
let fixedRate: FixedRateExchange
|
||||||
let dtAddress: string
|
let dtAddress: string
|
||||||
let dtContract: Contract
|
|
||||||
let config: Config
|
let config: Config
|
||||||
|
|
||||||
const nftData: NftCreateData = {
|
const nftData: NftCreateData = {
|
||||||
|
@ -8,7 +8,6 @@ import {
|
|||||||
ZERO_ADDRESS,
|
ZERO_ADDRESS,
|
||||||
signHash,
|
signHash,
|
||||||
Nft,
|
Nft,
|
||||||
transfer,
|
|
||||||
approve,
|
approve,
|
||||||
Config,
|
Config,
|
||||||
balance,
|
balance,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user