You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: