Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C-313] Refactor EthContracts to typescript #3063

Merged
merged 14 commits into from
May 11, 2022
Prev Previous commit
Next Next commit
Fix lint
  • Loading branch information
dylanjeffers committed May 11, 2022
commit 349819b28be691b508b01dc33435c975f8b1f9db
2 changes: 1 addition & 1 deletion libs/src/services/creatorNode/CreatorNode.ts
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import {
trackSchemaType,
Schemas
} from '../schemaValidator/SchemaValidator'
import type { Web3Manager }from '../web3Manager'
import type { Web3Manager } from '../web3Manager'
import type { CurrentUser, UserStateManager } from '../../userStateManager'

const { wait } = Utils
74 changes: 0 additions & 74 deletions libs/src/services/discoveryProvider/DiscoveryProvider.test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion libs/src/services/ethContracts/DelegateManagerClient.ts
Original file line number Diff line number Diff line change
@@ -459,7 +459,7 @@ export class DelegateManagerClient extends GovernedContractClient {
serviceProvider,
amount
)
return this.web3Manager.sendTransaction(method)
return await this.web3Manager.sendTransaction(method)
}

async updateRemoveDelegatorLockupDuration(duration: string) {
4 changes: 2 additions & 2 deletions libs/src/services/web3Manager/Web3Manager.ts
Original file line number Diff line number Diff line change
@@ -258,8 +258,8 @@ export class Web3Manager {
evt.events.forEach((arg) => {
returnValues[arg.name] = arg.value
})
const eventLog = { returnValues } as EventLog
events[evt.name] = eventLog
const eventLog = { returnValues }
events[evt.name] = eventLog as EventLog
})
receipt.events = events
}
2 changes: 2 additions & 0 deletions libs/src/services/web3Manager/XMLHttpRequest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-var-requires */

let XMLHttpRequestRef: typeof window.XMLHttpRequest

if (typeof window === 'undefined' || window === null) {