Giter VIP home page Giter VIP logo

Comments (6)

q9f avatar q9f commented on June 3, 2024
Eth::Client
  .create .initialize
    creates an http client
    creates an ipc client
    functions as geth development client
    can query basic methods
    does not create dysfunctional clients
  .transfer .transfer_and_wait
"02f87282053980808504a817c800825208940d4797398daf628fecd7bed9888a203232c4f568890246ddf9797668000080c080a017199e889529798063dee7d3918759e8dc10214bd86bd8681732fa7a5ca0278fa04a4ec265232dd74cbda27b0ed0f8d6548a11f068272c5622930d6a3ac8e458d9"
    funds a random account and returns the money
"02f87282053980808504a817c800825208940d4797398daf628fecd7bed9888a203232c4f56889013f306a2409fc000080c001a000ec00eacb23f8c5e3310a812570d5290afe4356f5b405d95a2a366af904e863a053d913186296cf87ef2a579cc5e97efe5e327f6ab73629b2f6e5a4532342fa07"
    funds a random account using legacy transactions (FAILED - 1)

Failures:

  1) Eth::Client.transfer .transfer_and_wait funds a random account using legacy transactions
     Failure/Error: raise IOError, output["error"]["message"] unless output["error"].nil?
     
     IOError:
       rlp: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.DynamicFeeTx).R
     # ./lib/eth/client.rb:211:in `send_command'
     # ./lib/eth/client.rb:195:in `block (2 levels) in <class:Client>'
     # ./lib/eth/client.rb:145:in `transfer'
     # ./lib/eth/client.rb:101:in `transfer_and_wait'
     # ./spec/eth/client_spec.rb:65:in `block (3 levels) in <top (required)>'

Finished in 0.15171 seconds (files took 0.25931 seconds to load)
7 examples, 1 failure

Failed examples:

rspec ./spec/eth/client_spec.rb:62 # Eth::Client.transfer .transfer_and_wait funds a random account using legacy transactions


from eth.rb.

q9f avatar q9f commented on June 3, 2024

Eth::Client
  .create .initialize
    creates an http client
    creates an ipc client
    functions as geth development client
    can query basic methods
    does not create dysfunctional clients
  .transfer .transfer_and_wait
"a0"
"02f87282053980808504a817c800825208940d4797398daf628fecd7bed9888a203232c4f568890246ddf9797668000080c080a0ee94b143e11c710eefaa2816d53d212368d7b65226845a4e3844d128b557aaeba02f3ff00c805979bb1ae731326181bacedf1ca3f62458f593f3817c61e81bb544"
"b0"
    funds a random account and returns the money
"c1"
"02f87282053980808504a817c800825208940d4797398daf628fecd7bed9888a203232c4f56889013f306a2409fc000080c080a0bdea8a2df311ae4465cb192f9425b6ea8420edbc96b1df63a6addf531b5f8bb2a000067402cae533a9ce8adf07435f9f344fdda67368a11dcb6ec1af6ed533fa10"
    funds a random account using legacy transactions (FAILED - 1)

Failures:

  1) Eth::Client.transfer .transfer_and_wait funds a random account using legacy transactions
     Failure/Error: raise IOError, output["error"]["message"] unless output["error"].nil?
     
     IOError:
       rlp: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.DynamicFeeTx).S
     # ./lib/eth/client.rb:211:in `send_command'
     # ./lib/eth/client.rb:195:in `block (2 levels) in <class:Client>'
     # ./lib/eth/client.rb:145:in `transfer'
     # ./lib/eth/client.rb:101:in `transfer_and_wait'
     # ./spec/eth/client_spec.rb:68:in `block (3 levels) in <top (required)>'

Finished in 0.15116 seconds (files took 0.21137 seconds to load)
7 examples, 1 failure

Failed examples:

rspec ./spec/eth/client_spec.rb:64 # Eth::Client.transfer .transfer_and_wait funds a random account using legacy transactions

from eth.rb.

q9f avatar q9f commented on June 3, 2024

Eth::Client
  .create .initialize
    creates an http client
    creates an ipc client
    functions as geth development client
    can query basic methods
    does not create dysfunctional clients
  .transfer .transfer_and_wait
"a0"
{:value=>0.42e20, :to=>#<Eth::Address:0x000055be5b64a388 @address="0x0d4797398daf628fecd7bed9888a203232c4f568">, :gas_limit=>21000, :chain_id=>1337, :priority_fee=>0, :max_gas_fee=>0.2e11, :from=>#<Eth::Address:0x000055be5b649910 @address="0xf9cd6f21ba04ad501be4b1578d809b902550a79c">, :nonce=>0}
#<Eth::Tx::Eip1559:0x000055be5b6525b0 @signer_nonce=0, @max_priority_fee_per_gas=0, @max_fee_per_gas=20000000000, @gas_limit=21000, @sender="0xF9Cd6f21ba04aD501BE4b1578D809B902550a79c", @destination="0x0D4797398daf628feCd7bED9888a203232C4f568", @amount=42000000000000000000, @payload="", @access_list=[], @signature_y_parity=1, @chain_id=1337, @signature_r="c883e2d7689e7c77738a06157dbaa883a3c5cc3fac8998c08202acee79843f35", @signature_s="00b1d11ad91f89e1058568ef69fd81e2f961f8f5fd2269739e924c42b9e7b8df", @type=2>
"02f87282053980808504a817c800825208940d4797398daf628fecd7bed9888a203232c4f568890246ddf9797668000080c001a0c883e2d7689e7c77738a06157dbaa883a3c5cc3fac8998c08202acee79843f35a000b1d11ad91f89e1058568ef69fd81e2f961f8f5fd2269739e924c42b9e7b8df"
    funds a random account and returns the money (FAILED - 1)
"c1"
{:value=>0.23e20, :to=>#<Eth::Address:0x000055be5b6f2650 @address="0x0d4797398daf628fecd7bed9888a203232c4f568">, :gas_limit=>21000, :chain_id=>1337, :gas_price=>0.2e11, :from=>#<Eth::Address:0x000055be5b6f1cc8 @address="0x91fa5a22ada9ff44b73cb54bc99b5675673087d9">, :nonce=>0}
#<Eth::Tx::Legacy:0x000055be5b6fa8f0 @signer_nonce=0, @gas_price=20000000000, @gas_limit=21000, @sender="0x91fa5A22ADa9Ff44b73cb54BC99b5675673087D9", @destination="0x0D4797398daf628feCd7bED9888a203232C4f568", @amount=23000000000000000000, @payload="", @signature_v="0a95", @chain_id=1337, @signature_r="632947d5d4afb3b2d8090abe2d85e14fde7a50a98580e778ee074a89c68bb7f2", @signature_s="419ed01c9de968a38f7d9ca4b39fcda8561f37fc2876369dd3fd38bf65d3a467", @type=0>
"f86f808504a817c800825208940d4797398daf628fecd7bed9888a203232c4f56889013f306a2409fc000080820a95a0632947d5d4afb3b2d8090abe2d85e14fde7a50a98580e778ee074a89c68bb7f2a0419ed01c9de968a38f7d9ca4b39fcda8561f37fc2876369dd3fd38bf65d3a467"
"d1"
    funds a random account using legacy transactions

Failures:

  1) Eth::Client.transfer .transfer_and_wait funds a random account and returns the money
     Failure/Error: raise IOError, output["error"]["message"] unless output["error"].nil?
     
     IOError:
       rlp: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.DynamicFeeTx).S
     # ./lib/eth/client.rb:211:in `send_command'
     # ./lib/eth/client.rb:195:in `block (2 levels) in <class:Client>'
     # ./lib/eth/client.rb:145:in `transfer'
     # ./lib/eth/client.rb:101:in `transfer_and_wait'
     # ./spec/eth/client_spec.rb:59:in `block (3 levels) in <top (required)>'

Finished in 0.15437 seconds (files took 0.22634 seconds to load)
7 examples, 1 failure

Failed examples:

rspec ./spec/eth/client_spec.rb:55 # Eth::Client.transfer .transfer_and_wait funds a random account and returns the money

from eth.rb.

q9f avatar q9f commented on June 3, 2024

https://ethereum.stackexchange.com/questions/71616/ethereum-boardcast-shows-error-non-canonical-integer-leading-zero-bytes-for

from eth.rb.

q9f avatar q9f commented on June 3, 2024

only happens with type 2, not legacy

>
"08cfe37f46bab6e1d9f9ae7e4d75750e40b068f984260fea2865e1388258d358"
"02f89982053973843b9aca008509c7652400825448946bfad389700db8bcb58b10f3d4a1e5809e81d1dc8801b69b4ba630f34ea44c6f72656d20497073756d205275627920457468657265756d205465737420312d322d33c080a0430dd144b1ac51ed3c820b83f58d2ac93b01062267765b82ab7216faa8a73465a000f72d670b20eab505b5da7a736fe484fb6b4f39c8eed7e7e2f9ed74c98c8682"
""
/home/user/.opt/q9f/eth.rb/lib/eth/client.rb:207:in `send_command': rlp: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.DynamicFeeTx).S (IOError)
        from /home/user/.opt/q9f/eth.rb/lib/eth/client.rb:191:in `block (2 levels) in <class:Client>'
        from ./rlp.rb:33:in `block in <main>'
        from ./rlp.rb:16:in `loop'
        from ./rlp.rb:16:in `<main>'

from eth.rb.

q9f avatar q9f commented on June 3, 2024

and type-1

#<Eth::Tx::Eip2930:0x0000562d65b8c2c8 @signer_nonce=83, @gas_price=42000000000, @gas_limit=30176, @sender="", @destination="0x1e754250D4C5317bFe9519b3B147138Ad516AB81", @amount=123456789012345678, @payload="Lorem Ipsum Ruby Ethereum Test 1-2-3", @access_list=[["\xDE\v)Vi\xA9\xFD\x93\xD5\xF2\x8D\x9E\xC8^@\xF4\xCBi{\xAE", ["\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03", "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\a"]], ["\xBB\x9B\xC2D\xD7\x98\x12?\xDEx?\xCC\x1Cr\xD3\xBB\x8C\x18\x94\x13", []]], @signature_y_parity=1, @chain_id=1337, @signature_r="2db4c38c7ca562b0893ca68094d88052f9d532c4eb4fa22ab99b9794f8bfcb00", @signature_s="0034f0ce1bc540c6590068e8bc092c3b41ca106118db185380eb89ebd53faf0f", @type=1>
"743fb445dcd636cf24c3b323d001649384b8527667549daeab775ffc9d4e6429"
"01f90107820539538509c76524008275e0941e754250d4c5317bfe9519b3b147138ad516ab818801b69b4ba630f34ea44c6f72656d20497073756d205275627920457468657265756d205465737420312d322d33f872f85994de0b295669a9fd93d5f28d9ec85e40f4cb697baef842a00000000000000000000000000000000000000000000000000000000000000003a00000000000000000000000000000000000000000000000000000000000000007d694bb9bc244d798123fde783fcc1c72d3bb8c189413c001a02db4c38c7ca562b0893ca68094d88052f9d532c4eb4fa22ab99b9794f8bfcb00a00034f0ce1bc540c6590068e8bc092c3b41ca106118db185380eb89ebd53faf0f"
""
/home/user/.opt/q9f/eth.rb/lib/eth/client.rb:207:in `send_command': rlp: non-canonical integer (leading zero bytes) for *big.Int, decoding into (types.AccessListTx).S (IOError)
        from /home/user/.opt/q9f/eth.rb/lib/eth/client.rb:191:in `block (2 levels) in <class:Client>'
        from ./rlp.rb:48:in `block in <main>'
        from ./rlp.rb:29:in `loop'
        from ./rlp.rb:29:in `<main>'

from eth.rb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.