From a609a790d67b06a09fe36c47cff84e9078753405 Mon Sep 17 00:00:00 2001 From: Lim Chee Kin Date: Tue, 21 Sep 2021 17:35:57 +0800 Subject: [PATCH] bug: fixed truffle config error: Cannot read property '_alreadyWrapped' of undefined --- truffle-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truffle-config.js b/truffle-config.js index 507ff79..9f333d4 100644 --- a/truffle-config.js +++ b/truffle-config.js @@ -74,7 +74,7 @@ module.exports = { rinkeby: { provider: () => { const privateKey = process.env.RINKEBY_PRIVATE_KEY; - new HDWalletProvider( + return new HDWalletProvider( privateKey, `https://rinkeby.infura.io/v3/${infuraProjectId}` )