izelnakri / eth

Ethereum utilities for Elixir
MIT License
119 stars 44 forks source link

Getting error while trying to call a setter function... #111

Open somoza opened 1 year ago

somoza commented 1 year ago

How can I debug this error? The message was sent by Ganache. I can't figure out in which part of send_transaction this code is generated...

Thanks!

Error: %{ "code" => -32700, "message" => "Cannot wrap string value \"F901EB0A8504A817C8008303373C94517B6528CE4DFECB031288B37F5CE910B815316380B90184B3F882400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000A00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000372F75706C6F6164732F6C6976655F766965775F75706C6F61642D313638363632343033342D3538303938353539363336342D312E7064660000000000000000000000000000000000000000000000000000000000000000000000000000000009446F63756D656E743100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020364332323445464545394145353444383145373942364544344535324442383029A05E6872198F22029840BAFEC13166652BFE4B03F96E854917AF12F7A2EBD2BDEFA013FED17E1367C54749A78829E84D28C111CAD6E937781AE217CF4E09BB01D944\" as a json-rpc type; strings must be prefixed with \"0x\".",

somoza commented 1 year ago

These is the params I'm sending:

params: %{
  data: "0xb3f882400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000006616e696d757300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009446f63756d656e7431000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000203643323234454645453941453534443831453739423645443445353244423830",
  from: "0x797F0Da0Ea4725ad23755Ea85D73356a2ab282Eb",
  gas: "0xc350",
  gasPrice: nil,
  to: "0x517B6528ce4DfECB031288B37F5cE910B8153163"
}