Skip to content

[isoltest] String formatting should not output padded zeros #7198

@erak

Description

@erak

Sneaked in with #7080.

The following test

contract C {
    function e() public {
        revert("Transaction failed.");
    }
}
// ====
// EVMVersion: >homestead
// ----
// _() -> FAILURE
// e() ->

does not print strings correctly:

Obtained result:
// _() -> FAILURE
// e() -> FAILURE, hex"08c379a0", 0x20, 19, "Transaction failed.\0\0\0\0\0\0\0\0\0\0\0\0\0"

It should rather output

// e() -> FAILURE, hex"08c379a0", 0x20, 19, "Transaction failed."

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