Skip to content

Commit

Permalink
Merge pull request #3 from gnosisguild/fix-address-error
Browse files Browse the repository at this point in the history
fix(ethers-v6): error caused by using 0x as address
  • Loading branch information
jfschwarz authored Aug 27, 2024
2 parents c975af6 + d92cc49 commit c04d072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/target-ethers-v6/src/codegen/reserved-keywords.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { BaseContract } from 'ethers'
import { BaseContract, ZeroAddress } from 'ethers'

export const ethersPassProperties = new Set(['then'])
export const baseContractProperties = new Set([
...Object.getOwnPropertyNames(BaseContract.prototype), // for methods
...Object.keys(new BaseContract('0x', [])), // for readOnly properties
...Object.keys(new BaseContract(ZeroAddress, [])), // for readOnly properties
])

export const reservedKeywordsLabels = new Set([
Expand Down

0 comments on commit c04d072

Please sign in to comment.