kaiachain / kaia

GNU Lesser General Public License v3.0
5 stars 10 forks source link

vm: New CallTracer impl and capture more cases in EVM #15

Closed blukat29 closed 5 days ago

blukat29 commented 2 weeks ago

Proposed changes

Types of changes

Please put an x in the boxes related to your change.

Checklist

Related issues

Further comments

Notable changes of callTrace

 {
   from: "0x7f0546832758f61410e81a94d7a07d55b1dfd278",
-  gas: "0x7b0c",
+  gas: "0xcd14",
   gasUsed: "0x5208",
   input: "0x",
-  output: "0x",
   to: "0xba736c844fd44c380ce19423f9f1ddcb9cd19b6c",
   type: "CALL",
   value: "0x0"
 }
 {
   error: "execution reverted",
   from: "0x7f0546832758f61410e81a94d7a07d55b1dfd278",
-  gas: "0x6fb8",
+  gas: "0xc350",
   gasUsed: "0x6992",
   input: "0x96670644",
   output: "0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000962616420696e7075740000000000000000000000000000000000000000000000",
+  revertReason: "bad input",
   reverted: {
     contract: "0xe6c5b1cbf283d9482088136b8cee53fdb6c088eb",
     message: "bad input"
   },
   to: "0xe6c5b1cbf283d9482088136b8cee53fdb6c088eb",
   type: "CALL",
   value: "0x0"
 }
blukat29 commented 6 days ago

@yoomee1313 @JayChoi1736 PTAL