Skip to content

Commit fdb053a

Browse files
authored
Fix CI regression test for contract sizes (#2444)
* Remove `todo` * Upload artifact with `name`
1 parent 9813271 commit fdb053a

File tree

3 files changed

+2
-5
lines changed
  • .github/workflows
  • crates/primitives/src
  • integration-tests/public/upgradeable-contracts/delegator

3 files changed

+2
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,6 @@ jobs:
767767
examples-contract-build-riscv:
768768
runs-on: ubuntu-latest
769769
needs: [set-image]
770-
# todo
771770
# needs: [set-image, build-std, build-riscv]
772771
defaults:
773772
run:
@@ -848,6 +847,7 @@ jobs:
848847
849848
- uses: actions/upload-artifact@v4
850849
with:
850+
name: measurements-${{ steps.extract_branch.outputs.branch }}
851851
path: ./measurements-${{ steps.extract_branch.outputs.branch }}
852852
retention-days: 31
853853

crates/primitives/src/types.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,6 @@ pub trait Environment: Clone {
422422

423423
/// TODO comment
424424
type EventRecord: 'static + scale::Codec;
425-
426-
// type AddressMapper: 'static + AddressMapper<Self>;
427425
}
428426

429427
/// Placeholder for chains that have no defined chain extension.
@@ -435,8 +433,6 @@ pub enum NoChainExtension {}
435433
#[cfg_attr(feature = "std", derive(TypeInfo))]
436434
pub enum DefaultEnvironment {}
437435

438-
//use sp_core::crypto::AccountId32;
439-
//use sp_runtime::AccountId32;
440436
impl Environment for DefaultEnvironment {
441437
const MAX_EVENT_TOPICS: usize = 4;
442438

integration-tests/public/upgradeable-contracts/delegator/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub mod delegator {
2525
pub struct Delegator {
2626
addresses: Mapping<H160, i32, ManualKey<0x23>>,
2727
counter: i32,
28+
// TODO check if we even need to save the `H256` hash in here.
2829
delegate_to: Lazy<(H256, H160)>,
2930
}
3031

0 commit comments

Comments
 (0)