1. 15 Apr, 2021 2 commits
    • Michael Müller's avatar
      Fix nightly clippy errors (#760) · c50f93ce
      Michael Müller authored
      * Fix `clippy:wrong_self_convention`
      
      error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
         --> crates/primitives/src/key.rs:172:21
          |
      172 |     pub fn to_bytes(&self) -> [u8; 32] {
          |                     ^^^^^
          |
          = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
          = help: consider choosing a less ambiguous name
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
      
      error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
         --> crates/primitives/src/key.rs:186:29
          |
      186 |     fn to_bytes_be_fallback(&self) -> [u8; 32] {
          |                             ^^^^^
          |
          = help: consider choosing a less ambiguous name
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention
      
      * Fix `clippy:branches_sharing_code` for `bitvec`
      
      error: all if blocks contain the same code at the end
         --> crates/storage/src/collections/bitvec/mod.rs:280:9
          |
      280 | /             *self.len += 1;
      281 | |             if value {
      282 | |                 self.last_mut()
      283 | |                     .expect("must have at least a valid bit in this case")
      284 | |                     .set()
      285 | |             }
      286 | |         }
          | |_________^
          |
          = note: `-D clippy::branches-sharing-code` implied by `-D warnings`
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
      
      * Fix `clippy:branches_sharing_code` for `stash`
      
      error: all if blocks contain the same code at the start
         --> crates/storage/src/collections/stash/mod.rs:308:9
          |
      308 | /         if prev_vacant == next_vacant {
      309 | |             // There is only one other vacant entry left.
      310 | |             // We can update the single vacant entry in a single look-up.
      311 | |             let entry = self
      ...   |
      315 | |                 .flatten()
      316 | |                 .expect("`prev` must point to an existing entry at this point");
          | |________________________________________________________________________________^
          |
          = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#branches_sharing_code
      
      * Add benchmark for "Fix `clippy:wrong_self_convention`"
      
      * Revert "Add benchmark for "Fix `clippy:wrong_self_convention`""
      
      This reverts commit 9fabbfd1.
      
      * Remove empty line
      c50f93ce
    • Michael Müller's avatar
      Migrate to `panic_any` (#763) · 1f184b61
      Michael Müller authored
      * Migrate to `panic_any`
      
      * Clean up unnecessary `std`-cfg's in off-chain env
      1f184b61
  2. 14 Apr, 2021 2 commits
  3. 07 Apr, 2021 1 commit
  4. 01 Apr, 2021 2 commits
  5. 30 Mar, 2021 1 commit
  6. 25 Mar, 2021 1 commit
  7. 22 Mar, 2021 2 commits
  8. 19 Mar, 2021 2 commits
  9. 12 Mar, 2021 1 commit
  10. 09 Mar, 2021 2 commits
  11. 06 Mar, 2021 1 commit
  12. 05 Mar, 2021 5 commits
  13. 03 Mar, 2021 1 commit
  14. 02 Mar, 2021 2 commits
    • Hero Bird's avatar
      ink! 3.0-rc3 pre-release changes and adjustments (#713) · ac501b24
      Hero Bird authored
      * adjust rustfmt.toml
      
      * add ink-fizz-tests feature guard to some test API
      
      * update ink! crates to version 3.0.0-rc3
      
      * write release notes for ink! 3.0-rc3
      
      * apply formatting to imports_granularity
      ac501b24
    • Michael Müller's avatar
      Minor improvements (#710) · 2b3d47c7
      Michael Müller authored
      * Fix nightly clippy warning: `inconsistent_struct_constructor`
      
      * Provide suggestion for fixing unitialized execution context
      
      * Ensure consistent versioning
      
      * Fix typos
      2b3d47c7
  15. 24 Feb, 2021 1 commit
  16. 22 Feb, 2021 1 commit
  17. 19 Feb, 2021 2 commits
  18. 10 Feb, 2021 1 commit
    • Michael Müller's avatar
      Improve ink! linker error protocol (#685) · 8228bf0d
      Michael Müller authored
      * Improve ink! linker error protocol
      
      * Improve order of parameters
      
      * Encode `EnforcedError` object into function signature
      
      * Improve doc comments
      
      * Add doc comment
      
      * Improve doc comment
      8228bf0d
  19. 05 Feb, 2021 2 commits
  20. 04 Feb, 2021 3 commits
    • Michael Müller's avatar
      Evaluate migration of `SmallVec` to `min_const_generics` (#598) · 3d337f46
      Michael Müller authored
      * Get rid of `generic-array`
      
      * Remove comment
      
      * Fmt and get rid of feature flags
      
      * Include Vec
      
      * Make clippy happy
      
      * Add `into_inner` back in
      
      * Do not allocate heap memory
      
      * Use `array_init` for initializing
      
      * Revert me: Activate `const-generics` feature in `array-init`
      
      * Remove `feature(array_map)`
      
      * Remove feature flag, since it is now stable on nightly
      
      * Add feature `ink-unstable`
      
      * Put `LazyArray` behind `ink-unstable` feature
      
      * Remove newline
      
      * Allow dead code in `LazyArray` when `ink-unstable` missing
      
      * Remove unnecessary allow
      3d337f46
    • Hero Bird's avatar
      Use BLAKE2b 256-bit hashes for selectors (#680) · e22a0feb
      Hero Bird authored
      * use BLAKE2b 256-bit hashes for selectors
      
      Before this PR we accidentally used BLAKE2b 512-bit hashing.
      Using 256-bit versions is important for smart contracts so that smart contracts can compute selector hashes on their own through the built-in contracts-pallet hash support which includes BLAKE2b 256-bit but not 512-bit.
      
      * apply rustfmt
      e22a0feb
    • Michael Müller's avatar
      Add generalized collection fuzz testing (#601) · a50bf6d3
      Michael Müller authored
      * Add generalized collection fuzz testing
      
      * Use `StorageHashMap::FromIter`
      
      * Use `saturating_mul`
      
      * Update to new `quickcheck` API
      
      * Adopt year to 2021 in license
      
      * Implement suggestions from review
      a50bf6d3
  21. 03 Feb, 2021 2 commits
  22. 02 Feb, 2021 3 commits
    • Michael Müller's avatar
      Debug why no issue is created for failing fuzz test (#671) · 36c94019
      Michael Müller authored
      * Revert me: Run fuzz tests on this branch
      
      * Add debug output
      
      * Revert me: Decrease number of runs
      
      * Do not stop CI stage on exit code 1
      
      * Revert "Revert me: Decrease number of runs"
      
      This reverts commit 88d6b2c5.
      
      * Revert "Add debug output"
      
      This reverts commit 2be03bce.
      
      * Revert "Revert me: Run fuzz tests on this branch"
      
      This reverts commit 7493421b.
      36c94019
    • Michael Müller's avatar
      Fix broken intra-doc links + add CI stage to test example docs (#606) · 7aaf4dcc
      Michael Müller authored
      * Fix broken intra-doc links
      
      * Fix doc link
      
      * Add CI stage to test example docs
      
      * Revert me: Provoke doc failures in example
      
      * Remove intra-crate link to non-dependency
      
      * Remove `--all-features`
      
      * Revert "Revert me: Provoke doc failures in example"
      
      This reverts commit 563bfeb3.
      
      * Prettify paragraph
      
      * Remove unnecessary imports
      
      * Revert "Remove unnecessary imports"
      
      This reverts commit 05207133
      
      .
      
      * Remove unnecessary imports
      
      * Remove `cfg(doc)` path resolution for doc comments
      
      * Improve language and formatting
      
      * Upgrade `scale` and `scale-info` for `rand-extension`
      
      * Make http link work
      
      * Remove `crate::` prefix from doc links
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarHero Bird <robin.freyler@gmail.com>
      
      Co-authored-by: default avatarHero Bird <robin.freyler@gmail.com>
      7aaf4dcc
    • hammeWang's avatar
      Bump codec and scale-info in rand-extension (#670) · ad89397f
      hammeWang authored
      * add #[ink:chain_extension] example contract
      
      * modify return content
      
      * fix rustfmt CI fail
      
      * bump codec and scale-info in rand-extension
      ad89397f