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

Unable to deploy - TypeError: Cannot read property 'fromRed' of null #1

Closed
vladpanov opened this issue Mar 22, 2021 · 1 comment · Fixed by #3
Closed

Unable to deploy - TypeError: Cannot read property 'fromRed' of null #1

vladpanov opened this issue Mar 22, 2021 · 1 comment · Fixed by #3

Comments

@vladpanov
Copy link
Contributor

Hi,

After entering all of the information for Binance deployment, I am getting the following error when running node deploy.js:
TypeError: Cannot read property 'fromRed' of null

/Users/vlad/Documents/_DEV/chaindata/node_modules/elliptic/lib/elliptic/curve/short.js:415
  return this.x.fromRed();
                ^

TypeError: Cannot read property 'fromRed' of null
    at Point.getX (/Users/vlad/Documents/_DEV/chaindata/node_modules/elliptic/lib/elliptic/curve/short.js:415:17)
    at Point._encode (/Users/vlad/Documents/_DEV/chaindata/node_modules/elliptic/lib/elliptic/curve/base.js:300:16)
    at Point.encode (/Users/vlad/Documents/_DEV/chaindata/node_modules/elliptic/lib/elliptic/curve/base.js:309:28)
    at KeyPair.getPublic (/Users/vlad/Documents/_DEV/chaindata/node_modules/elliptic/lib/elliptic/ec/key.js:66:19)
    at new SigningKey (/Users/vlad/Documents/_DEV/chaindata/node_modules/@ethersproject/signing-key/lib/index.js:22:71)
    at new Wallet (/Users/vlad/Documents/_DEV/chaindata/node_modules/@ethersproject/wallet/lib/index.js:123:36)
    at Object.<anonymous> (/Users/vlad/Documents/_DEV/chaindata/deploy.js:59:16)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)

In terms of changes, I've only updated the required 39 - 55:

const provider = new ethers.providers.JsonRpcProvider('https://bsc-dataseed1.binance.org/');
const verifyURL = 'https://api.bscscan.com/api';
const privateKey = Buffer.from('0x1e...', 'hex');
const apikey = 'VKVS...';

const mpcAddress = '0x533e3c0e6b48010873B947bddC4721b1bDFF9648';
const signer = new ethers.Wallet(privateKey, provider);
const constructorArgs = ['<name>', '<symbol>', '18', '', signer.address];

Any guidance would be super appreciated. Thank you!

@psykeeper
Copy link
Contributor

Hi @vladpanov , could you please try pulling #3 and verifying that it fixes this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants