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

Data mismatch in emit causes compilation crash. #1717

Open
Subway2023 opened this issue Feb 7, 2025 · 0 comments
Open

Data mismatch in emit causes compilation crash. #1717

Subway2023 opened this issue Feb 7, 2025 · 0 comments

Comments

@Subway2023
Copy link

Problem: If the data provided in the emit statement does not match the event definition, it causes a compilation crash, but solc does not crash.
Version: v0.3.3: Atlantis

test.sol

contract ClientReceipt {
    event Withdraw(uint _value, string owner);
    event Deposit(uint256 indexed _from, bytes32 indexed _id, uint _value) anonymous;
    function deposit(bytes32 _id) public payable {
        emit Deposit(0x5ddaa77ac5bda319ba947e31bee594711f39ed1b20d079d438dbad5ed729fb30, _id, msg.value); // 0x5ddaa77a -> 'Withdraw(uint256,string)'
    }
}
solang compile --target solana test.sol

thread 'main' panicked at 'not implemented', src/emit/solana/target.rs:1937:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant