trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.31k forks source link

Truffle Suite HD-Wallet Providing Errors / Causing Crashes #1730

Closed lrgeoemtry closed 5 years ago

lrgeoemtry commented 5 years ago

createPuzzleSecure error Cannot read property 'then' of undefined POST /api/1.0/createPuzzleSecure/0xf55f45267258efbfcefb795a688630a26576635e/15/undefined/%7B%7D 200 36.717 ms - 50 /home/ubuntu/hipr-restful/nodemodules/truffle-hdwallet-provider/dist/index.js:15 */var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.ex ports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNam es(t)[0])return!1;for(var e={},r=0;r<10;r++)e[""+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(fu nction(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var c in r=Object(arguments[u]))i.call(r,c )&&(s[c]=r[c]);if(n){a=n(r);for(var l=0;l<a.length;l++)o.call(r,a[l])&&(s[a[l]]=r[a[l]])}}return s}},function(t,e){ t.exports=function(t

TypeError: e is not a function at /home/ubuntu/hipr-restful/node_modules/truffle-hdwallet-provider/dist/index.js:15:544968 at /home/ubuntu/hipr-restful/node_modules/truffle-hdwallet-provider/dist/index.js:1:150953 at d (/home/ubuntu/hipr-restful/node_modules/truffle-hdwallet-provider/dist/index.js:1:215490) at /home/ubuntu/hipr-restful/node_modules/truffle-hdwallet-provider/dist/index.js:1:215543 at e.default (/home/ubuntu/hipr-restful/node_modules/truffle-hdwallet-provider/dist/index.js:15:559863)

lrgeoemtry commented 5 years ago

as asked by @gnidan truffle version Truffle v4.0.7(core: 4.0.7) Solidity v0.4.24 (solc-js)

also the project this is happening in is https://github.com/hercone/restful-hipr

@xen1024 is the lead dev on here

gnidan commented 5 years ago

Could you please try upgrading to either to Truffle v5 (breaking changes) or v4.1.15 (no breaking changes)? This way we won't risk chasing down an outdated bug. Thanks!

lrgeoemtry commented 5 years ago

@xen1024 you need to do this in hipr anyway.

gnidan commented 5 years ago

Just following up here, is this still an issue? Let us know! Thanks!

eggplantzzz commented 5 years ago

Closing for maintenance. Let us know if we should reopen this!