Skip to content

Commit

Permalink
chore: remove static defaults for gas price (#173)
Browse files Browse the repository at this point in the history
This enables users to automatically determine price using their preferred wallet UI, or ethersjs to determine the price heuristically.
  • Loading branch information
fermentfan authored Oct 21, 2022
1 parent e57ed93 commit 31e30d8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export class EthrDidController {
// console.log(`changing owner for ${oldOwner} on registry at ${registryContract.address}`)
const overrides = {
gasLimit: 123456,
gasPrice: 1000000000,
...options,
}

Expand Down Expand Up @@ -121,7 +120,6 @@ export class EthrDidController {
): Promise<TransactionReceipt> {
const overrides = {
gasLimit: 123456,
gasPrice: 1000000000,
...options,
}

Expand All @@ -147,7 +145,6 @@ export class EthrDidController {
): Promise<TransactionReceipt> {
const overrides = {
gasLimit: 123456,
gasPrice: 1000000000,
...options,
}
const contract = await this.attachContract(overrides.from)
Expand Down Expand Up @@ -191,7 +188,6 @@ export class EthrDidController {
): Promise<TransactionReceipt> {
const overrides = {
gasLimit: 123456,
gasPrice: 1000000000,
...options,
}
const contract = await this.attachContract(overrides.from)
Expand All @@ -218,7 +214,6 @@ export class EthrDidController {
): Promise<TransactionReceipt> {
const overrides = {
gasLimit: 123456,
gasPrice: 1000000000,
...options,
}
delegateType = delegateType.startsWith('0x') ? delegateType : stringToBytes32(delegateType)
Expand Down Expand Up @@ -254,7 +249,6 @@ export class EthrDidController {
): Promise<TransactionReceipt> {
const overrides = {
gasLimit: 123456,
gasPrice: 1000000000,
...options,
}
delegateType = delegateType.startsWith('0x') ? delegateType : stringToBytes32(delegateType)
Expand All @@ -280,7 +274,6 @@ export class EthrDidController {
): Promise<TransactionReceipt> {
const overrides = {
gasLimit: 123456,
gasPrice: 1000000000,
controller: undefined,
...options,
}
Expand Down Expand Up @@ -317,7 +310,6 @@ export class EthrDidController {
): Promise<TransactionReceipt> {
const overrides = {
gasLimit: 123456,
gasPrice: 1000000000,
controller: undefined,
...options,
}
Expand All @@ -342,7 +334,6 @@ export class EthrDidController {
// console.log(`revoking attribute ${attrName}(${attrValue}) for ${identity}`)
const overrides = {
gasLimit: 123456,
gasPrice: 1000000000,
...options,
}
attrName = attrName.startsWith('0x') ? attrName : stringToBytes32(attrName)
Expand Down Expand Up @@ -392,7 +383,6 @@ export class EthrDidController {
// console.log(`revoking attribute ${attrName}(${attrValue}) for ${identity}`)
const overrides = {
gasLimit: 123456,
gasPrice: 1000000000,
...options,
}
attrName = attrName.startsWith('0x') ? attrName : stringToBytes32(attrName)
Expand Down

0 comments on commit 31e30d8

Please sign in to comment.