Skip to content
New issue

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

Encountering mismatched log event data between zkEVM and Ethereum #3634

Open
zjg555543 opened this issue May 16, 2024 · 1 comment
Open

Encountering mismatched log event data between zkEVM and Ethereum #3634

zjg555543 opened this issue May 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@zjg555543
Copy link

System information

Network: Testnet

Expected behaviour

The contract's log event data should be the same.

Actual behaviour

There's a mismatch in the logged event data.

Steps to reproduce the behaviour

zkevm: 102030
sepolia: 010203

Performing a transfer operation using the emitEvent function.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract Padded {
    event Test0(bytes data);

    function emitEvent() public {
        bytes memory myData = hex"010203"; 
        bytes32 eventSignature = keccak256("Test0(bytes)"); 
        assembly {
            let dataPtr := add(myData, 32)
            let dataLength := mload(myData)
            log1(dataPtr, dataLength, eventSignature)
        }
    }
}
@tclemos tclemos self-assigned this May 16, 2024
@tclemos tclemos added the bug Something isn't working label May 16, 2024
@tclemos tclemos added this to the v0.6.8 milestone May 16, 2024
@tclemos
Copy link
Contributor

tclemos commented May 16, 2024

We are investigating it. Thanks for sharing it.

@agnusmor agnusmor modified the milestones: v0.6.8, v0.7.0 May 24, 2024
@tclemos tclemos modified the milestones: v0.7.0, v0.8.0 Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants