Skip to content

Normal contract can't pass checkEvmByteCode #17

Description

@its-saeed

This seemingly normal solidity contract can't pass checkEvmByteCode function:

contract EvenValueGuard is GuardProgramVerification {
    function verify(
        TransactionContext calldata context,
        address[] calldata /*owners*/,
        address[] calldata /*signers*/
    ) external pure override returns (bool) {
        // Check if the `value` is divisible by 2
        if (context.value % 2 != 0) {
            return false;
        }
        return true;
    }
}

Deployed bytecode of the contract is:

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80632c4f13c714610030575b600080fd5b61004361003e3660046100ce565b610057565b604051901515815260200160405180910390f35b600061006860026040880135610175565b1561007557506000610079565b5060015b95945050505050565b60008083601f84011261009457600080fd5b50813567ffffffffffffffff8111156100ac57600080fd5b6020830191508360208260051b85010111156100c757600080fd5b9250929050565b6000806000806000606086880312156100e657600080fd5b853567ffffffffffffffff8111156100fd57600080fd5b8601610160818903121561011057600080fd5b9450602086013567ffffffffffffffff81111561012c57600080fd5b61013888828901610082565b909550935050604086013567ffffffffffffffff81111561015857600080fd5b61016488828901610082565b969995985093965092949392505050565b60008261019257634e487b7160e01b600052601260045260246000fd5b50069056fea2646970667358221220bf077aa880ab891b227202669246c46a496e801bdd61bb9c51f6af09ef0b501a64736f6c634300081c0033

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions