-
Notifications
You must be signed in to change notification settings - Fork 328
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
[action] simplify TxCommon interface #4496
Conversation
@@ -71,6 +70,7 @@ type ( | |||
TxDynamicGas interface { | |||
GasTipCap() *big.Int | |||
GasFeeCap() *big.Int | |||
EffectiveGasPrice(*big.Int) *big.Int |
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.
more natural to put the func in TxDynamicGas
@@ -387,7 +387,7 @@ func (p *Protocol) deleteStateV2(sm protocol.StateManager, key []byte) error { | |||
func (p *Protocol) settleSystemAction( | |||
ctx context.Context, | |||
sm protocol.StateManager, | |||
act action.TxCommon, | |||
act action.TxDynamicGas, |
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.
#4396 extends this interface to TxCommon
, with this change, we can reduce it back to TxDynamicGas
Quality Gate passedIssues Measures |
Description
as title.
Fixes #(issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: