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