Skip to content
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

fix!: default_max_contract_limit not correctly applied #1653

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

Flouse
Copy link
Contributor

@Flouse Flouse commented Dec 21, 2023

Note: This is a PR to forcerelay-dev branch.

If the hardfork Andromeda is not enabled, use default_max_contract_limit(),
because default_max_contract_limit is set to ConsensusConfig by default:

#[serde(default = "default_max_contract_limit")]
pub max_contract_limit: u64,
}
impl From<ConsensusConfig> for ConsensusConfigV0 {
fn from(value: ConsensusConfig) -> Self {
ConsensusConfigV0 {
gas_limit: value.gas_limit,
interval: value.interval,
precommit_ratio: value.precommit_ratio,
propose_ratio: value.propose_ratio,
prevote_ratio: value.prevote_ratio,
brake_ratio: value.brake_ratio,
tx_num_limit: value.tx_num_limit,
max_tx_size: value.max_tx_size,
}
}
}
pub fn default_max_contract_limit() -> u64 {
0xc000
}

What is the impact of this PR?

This is a Breaking Change

CI Settings

CI Usage

Tip: Check the CI you want to run below, and then comment /run-ci.

CI Switch

  • Web3 Compatible Tests
  • OpenZeppelin tests
  • v3 Core Tests

CI Description

CI Name Description
Web3 Compatible Test Test the Web3 compatibility of Axon
v3 Core Test Run the compatibility tests provided by Uniswap V3
OpenZeppelin tests Run the compatibility tests provided by OpenZeppelin, including OCT 1-5 | 6-10 | 11 | 12-15 | 16-19

@Flouse Flouse requested a review from a team as a code owner December 21, 2023 14:40
@Flouse Flouse requested review from blckngm and Simon-Tl and removed request for a team December 21, 2023 14:40
@Flouse Flouse force-pushed the fix-default_max_contract_limit branch from 3af7eb0 to 7b5e714 Compare December 21, 2023 14:42
@Flouse Flouse requested review from ashuralyk and driftluo and removed request for Simon-Tl December 21, 2023 14:43
Flouse and others added 2 commits December 21, 2023 14:49
* ci: add axon sync test
* ci: update the self-runner name to layer2-runners
* Run sync-test on pull_request event

---------

Co-authored-by: Flouse <[email protected]>
@Flouse Flouse force-pushed the fix-default_max_contract_limit branch from 28eb351 to 540be8a Compare December 21, 2023 14:50
@Flouse Flouse changed the title fix: default_max_contract_limit not correctly applied fix!: default_max_contract_limit not correctly applied Dec 22, 2023
@Flouse
Copy link
Contributor Author

Flouse commented Dec 22, 2023

/run-ci

Copy link

CI tests run on commit:

CI test list:

  • openzeppelin_test_1_5_and_12_15.yml
  • openzeppelin_test_16_19.yml
  • openzeppelin_test_6_10.yml
  • openzeppelin_test_11.yml
  • v3_core_test.yml
  • web3_compatible.yml

Please check ci test results later.

@Flouse Flouse merged commit c203acb into axonweb3:forcerelay-dev Dec 22, 2023
34 of 45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants