1
0
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:
Bogdan Fazakas 2022-08-17 15:14:54 +03:00
parent bd82c939a7
commit 89b83221de
6 changed files with 5 additions and 9 deletions

View File

@ -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) {

View File

@ -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

View File

@ -110,7 +110,7 @@ export async function sendTx(
...args: any[]
): Promise<any> {
const sendTxValue: Record<string, any> = {
from: from,
from,
gas: estGas + 1
}
try {

View File

@ -5,7 +5,6 @@ import BigNumber from 'bignumber.js'
import {
amountToUnits,
calculateEstimatedGas,
getFairGasPrice,
unitsToAmount,
minAbi,
sendTx,

View File

@ -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 = {

View File

@ -8,7 +8,6 @@ import {
ZERO_ADDRESS,
signHash,
Nft,
transfer,
approve,
Config,
balance,