q9f / eth.rb

a straightforward library to build, sign, and broadcast ethereum transactions anywhere you can run ruby.
https://q9f.github.io/eth.rb
Apache License 2.0
204 stars 88 forks source link

Sign Transaction ( ArgumentError (comparison of String with 1 failed)). #152

Closed samuarti closed 2 years ago

samuarti commented 2 years ago

Expected behaviour

When we trying to do sign the transactions its return error. ( ArgumentError (comparison of String with 1 failed)). Expected behaviour

Log error

pkey = <Eth::Key:0x0000559d893b2b90 @private_key=#<Secp256k1::PrivateKey:0x0000559d893b25f0 @data="x\xE6\x1F\"^4\rG\x16\xEFC\xEC\xC9l\xE4\xB3cD\x95\x8F\xC1\xDEl\xCF\xDC\xDC\xA9?\xA0U\x0F\x93">, @public_key=#>

txn.sign(pkey) {"level":"ERROR","time":"2022-09-30 06:42:20","message":"#<ArgumentError: comparison of String with 1 failed>"