-
Notifications
You must be signed in to change notification settings - Fork 47
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
eip160 change byte cost for exp op #346
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Just one comment on style, but feel free to ignore if you don't think it makes sense.
alias EVM.Configuration | ||
|
||
@spec contract_creation_cost(Configuration.t()) :: integer() | ||
def contract_creation_cost(config), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we might be able to use defdelegate
for a lot of these functions that are simply calling the fallback_config
. Don't think it changes things much in practice, but just a thought if you feel like it'd be nicer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@germsvel Can you give a simple example? It looks like defdelegate
is used to delegate to a different module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, yeah seems you're right. I thought there was another way to use defdelegate
but doesn't seem like it makes sense here.
Changes: