Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

CALLDATASIZE Gadget#80

Closed
roynalnaruto wants to merge 9 commits into
mainfrom
feat/calldatasize
Closed

CALLDATASIZE Gadget#80
roynalnaruto wants to merge 9 commits into
mainfrom
feat/calldatasize

Conversation

@roynalnaruto
Copy link
Copy Markdown

@roynalnaruto roynalnaruto commented Jan 19, 2022

Following specs in Specs PR

@roynalnaruto
Copy link
Copy Markdown
Author

Should make use of StackOnlyOpcode::<0>::gen_associated_ops once #73 is merged.

icemelon
icemelon previously approved these changes Jan 31, 2022
Copy link
Copy Markdown
Member

@icemelon icemelon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

}

fn tx_context_lookup(
pub(crate) fn tx_context_lookup(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this change as it is not required in this PR.

Copy link
Copy Markdown
Member

@icemelon icemelon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After fix the comment and rebase to latest main, I'll create the PR to upstream.

// OpcodeId::CALLVALUE => {},
// OpcodeId::CALLDATALOAD => {},
// OpcodeId::CALLDATASIZE => {},
OpcodeId::CALLDATASIZE => CallDataSize::gen_associated_ops,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can now use StackOnlyOpcode as TIMESTAMP opcode is already merged.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@icemelon rebasing was a mess (because of the merge commit that got through). I'm closing this PR and opening a new one with all the changes from before as well as the changes suggested in the reviews.

@roynalnaruto roynalnaruto mentioned this pull request Feb 5, 2022
@roynalnaruto
Copy link
Copy Markdown
Author

Closing in favour of #90

@roynalnaruto roynalnaruto deleted the feat/calldatasize branch August 22, 2022 13:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants