OutCast3k / coinbin

Javascript Bitcoin Wallet. Supports Multisig, Stealth, HD, SegWit, Bech32, Time Locked Addresses, RBF and more!
https://coinb.in/
MIT License
907 stars 622 forks source link

coin.js:1290 Uncaught RangeError: Maximum call stack size exceeded #93

Open zilveer opened 7 years ago

zilveer commented 7 years ago

Hello, when I try to sign a transaction I get the following error:

coin.js:1290 Uncaught RangeError: Maximum call stack size exceeded at readAsInt (coin.js:1290) at readAsInt (coin.js:1293) at readAsInt (coin.js:1293)

The line 1290-1293 in coin.js var readAsInt = function(bytes) { if (bytes == 0) return 0; pos++; return buffer[pos-1] + readAsInt(bytes-1) * 256; } I am signing it with my private key and with the decoded raw transaction.

What is the issue, any help is appreciated.

zilveer commented 7 years ago

I solved it: Possible duplex of issue: https://github.com/OutCast3k/coinbin/issues/73