Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Error "Cannot read property 'toChecksumAddress' of undefined" when calling Project#createProxy #1087

Closed
spalladino opened this issue Jul 12, 2019 · 1 comment
Assignees
Labels
kind:bug source:user-feedback Feedback provided by end-users

Comments

@spalladino
Copy link
Contributor

Originally reported here.

contract = await project.createProxy(MyContract, {
      initMethod: 'initialize',
      initArgs: [
        owner,
        address_a,
        address_b,
        address_c,
        address_d
      ]
    });
 TypeError: Cannot read property 'toChecksumAddress' of undefined
  at Object.toAddress (node_modules/zos-lib/src/utils/Addresses.ts:12:21)
  at new ProxyAdmin (node_modules/zos-lib/src/proxy/ProxyAdmin.ts:39:20)
  at Function.<anonymous> (node_modules/zos-lib/src/proxy/ProxyAdmin.ts:34:12)
  at Generator.next (<anonymous>)
  at fulfilled (node_modules/zos-lib/lib/proxy/ProxyAdmin.js:4:58)
  at process._tickCallback (internal/process/next_tick.js:68:7)
@spalladino spalladino self-assigned this Jul 17, 2019
@spalladino
Copy link
Contributor Author

Hey @chentschel, this looks like an issue when importing web3-utils. Could you confirm which version of the web3 library you have installed?

spalladino added a commit that referenced this issue Jul 17, 2019
jbcarpanelli pushed a commit that referenced this issue Jul 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind:bug source:user-feedback Feedback provided by end-users
Projects
None yet
Development

No branches or pull requests

1 participant