polywrap / PolyGPT

PolyGPT is an autonomous agent that can learn new capabilities on-demand.
61 stars 9 forks source link

Feat: Ethereum Wrap #57

Open rihp opened 1 year ago

rihp commented 1 year ago

The ethereum wrap works consistently for functions like:

etc

Some functionality that is not working at the time of this issue:

rihp commented 1 year ago

Prompt: send 10 wei of this erc20 token 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 to 0x37341cbb14c5F128A70B149726ad8B2CE6F4C793 Do you wish to execute the following function?

InvokeWrap ({
  "uri": "ipfs/QmNkqWQuTAiZaLSR3VE53uazuAEqZevv1XQtvAYahuyJ6d",
  "method": "callContractMethod",
  "args": {
    "address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
    "method": "transfer",
    "args": [
      "0x37341cbb14c5F128A70B149726ad8B2CE6F4C793",
      "10"
    ],
    "options": {},
    "connection": {}
  }
})

(Y/N) y

System: The function failed, this is the error: WrapError: __wrap_abort: called `Result::unwrap()` on an `Err` value: SerdeError("Failed to parse ABI. Error(\"expected ident\", line: 1, column: 4)")
code: 51 WRAPPER INVOKE ABORTED
uri: wrap://ipfs/QmNkqWQuTAiZaLSR3VE53uazuAEqZevv1XQtvAYahuyJ6d
method: callContractMethod
args: {
  "address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
  "method": "transfer",
  "args": [
    "0x37341cbb14c5F128A70B149726ad8B2CE6F4C793",
    "10"
  ],
  "options": {},
  "connection": {}
} 
source: { file: "src/api/transaction.rs", row: 114, col: 77 }