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

Error: bad secret key size , DEPLOY LOOM TESTNET #2316

Open
ThuyKim97 opened this issue Jun 19, 2024 · 0 comments
Open

Error: bad secret key size , DEPLOY LOOM TESTNET #2316

ThuyKim97 opened this issue Jun 19, 2024 · 0 comments

Comments

@ThuyKim97
Copy link

I try to deploy on Loom testnet. THis is my configtion of Loom in config-truffle.js

loom_testnet: {
provider: function() {
const privateKey = 'YOUR_PRIVATE_KEY';
const chainId = 'extdev-plasma-us1';
const writeUrl = 'wss://extdev-basechain-us1.dappchains.com/websocket';
const readUrl = 'wss://extdev-basechain-us1.dappchains.com/queryws';
return new LoomTruffleProvider(chainId, writeUrl, readUrl, privateKey);
},
network_id: 'extdev'
},

AND I got this ERROR
Error: bad secret key size
at Function.nacl.sign.keyPair.fromSecretKey (C:\Users\LENOVO\node_modules\loom-js\node_modules\tweetnacl\nacl-fast.js:2320:11)
at publicKeyFromPrivateKey (C:\Users\LENOVO\node_modules\loom-js\src\crypto-utils.ts:69:34)
at C:\Users\LENOVO\node_modules\loom-js\src\loom-provider.ts:205:48
at Array.forEach ()
at LoomProvider.addAccounts (C:\Users\LENOVO\node_modules\loom-js\src\loom-provider.ts:204:24)
at new LoomProvider (C:\Users\LENOVO\node_modules\loom-js\src\loom-provider.ts:193:10)
at new TruffleLoomProvider (C:\Users\LENOVO\node_modules\loom-truffle-provider\src\index.ts:22:20)
at Object.provider (C:\Users\LENOVO\Documents\Web3\truffle-config.js:124:16)
at Object.getProvider (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\provider\index.js:20:1)
at Object.create (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\provider\index.js:13:1)
at TruffleConfig.get [as provider] (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\config\dist\configDefaults.js:276:1)
at Object.detect (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\environment\environment.js:19:1)
at Object.module.exports [as run] (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\test\run.js:37:1)
at runCommand (C:\Users\LENOVO\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\command-utils.js:297:1)
Truffle v5.11.5 (core: 5.11.5)
Node v20.14.0

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

No branches or pull requests

1 participant