We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response
If "Axon is compatible with Ethereum" as that written in the README.md, the implementation of receipts root in block is incorrect.
The Block::receipts_root is set from ExecResp.receipt_root.
Block::receipts_root
ExecResp.receipt_root
axon/protocol/src/types/block.rs
Line 118 in c7a471b
The ExecResp.receipt_root is merkle root of a list of hashes.
hashes
axon/core/executor/src/lib.rs
Lines 175 to 182 in c7a471b
Each hash in hashes is AxonExecutor::evm_exec(...).ret.
hash
AxonExecutor::evm_exec(...).ret
Lines 142 to 149 in c7a471b
TxResp.ret is set from res.
TxResp.ret
res
Lines 282 to 284 in c7a471b
The res is transact_call(...).1
transact_call(...).1
Lines 232 to 248 in c7a471b
So, the res is just Vec<u8> which represents the return data of the called contract, it is NOT the receipt of transaction.
Vec<u8>
None.
Not Associated
p.s. I don't like your issue template, at least it's not suitable for this issue.
The text was updated successfully, but these errors were encountered:
EIP-2718
EIP-2930
EIP-1559
Successfully merging a pull request may close this issue.
Contact Details
No response
Current Behavior
Summary
If "Axon is compatible with Ethereum" as that written in the README.md, the implementation of receipts root in block is incorrect.
Details
The
Block::receipts_root
is set fromExecResp.receipt_root
.axon/protocol/src/types/block.rs
Line 118 in c7a471b
The
ExecResp.receipt_root
is merkle root of a list ofhashes
.axon/core/executor/src/lib.rs
Lines 175 to 182 in c7a471b
Each
hash
inhashes
isAxonExecutor::evm_exec(...).ret
.axon/core/executor/src/lib.rs
Lines 142 to 149 in c7a471b
TxResp.ret
is set fromres
.axon/core/executor/src/lib.rs
Lines 282 to 284 in c7a471b
The
res
istransact_call(...).1
axon/core/executor/src/lib.rs
Lines 232 to 248 in c7a471b
So, the
res
is justVec<u8>
which represents the return data of the called contract, it is NOT the receipt of transaction.Expected Behavior
None.
OS
Not Associated
Axon version
No response
Kernel
Not Associated
Relevant log output
No response
Anything else?
p.s. I don't like your issue template, at least it's not suitable for this issue.
The text was updated successfully, but these errors were encountered: