Skip to content

incorrect memory trace values #1

@apenzk

Description

@apenzk

Memtrace error

in transaction.rs we have

                    return Execution {
                        change_set,
                        status: Status::Success,
                        memory_trace: MemTrace::new(vec![
                            // reads must precede writes in the memory trace
                            MemOp::Read(*sender),
                            MemOp::Write(*sender, *amount),
                            MemOp::Read(*receiver),
                            MemOp::Write(*receiver, *amount),
                        ]),

but should this be the following?

MemOp::Write(*sender, total amount left, i.e. new balance),
...
MemOp::Write(*receiver, total amount new, i.e. new balance),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions