Skip to content

Commit

Permalink
Minor fixes for some CI failures (#2383)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi authored Jan 28, 2025
1 parent ac01b4e commit 859b3d9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .config/cargo_spellcheck.dic
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ FFI
Gnosis
GPL
KECCAK
Keccak
L1
L2
Polkadot
PolkaVM
PSP22
RPC
RLP
SHA
UI/S
URI
Expand All @@ -29,6 +31,7 @@ bitvector
bitmask
bitwise
callee
codec
codegen
comparator
const
Expand Down
2 changes: 1 addition & 1 deletion .github/rust-info/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ runs:
cargo spellcheck --version
bash --version
substrate-contracts-node --version
cargo-contract --version
cargo contract --version
shell: bash
6 changes: 2 additions & 4 deletions crates/env/src/engine/on_chain/pallet_revive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ use crate::{
FromAddr,
LimitParamsV2,
},
dispatch::{
DecodeDispatch,
DispatchError,
},
engine::on_chain::{
EncodeScope,
EnvInstance,
Expand All @@ -45,6 +41,8 @@ use crate::{
},
types::FromLittleEndian,
Clear,
DecodeDispatch,
DispatchError,
EnvBackend,
Environment,
Result,
Expand Down
2 changes: 1 addition & 1 deletion crates/ink/ir/src/ir/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl Default for Environment {
#[derive(Debug, Clone, PartialEq, Eq, Default)]

pub enum AbiEncoding {
/// Scale codec, the default.
/// SCALE codec, the default.
#[default]
Scale,
/// RLP codec, useful for compatibility with Solidity contracts.
Expand Down
4 changes: 2 additions & 2 deletions crates/primitives/src/reflect/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ pub enum Encoding {
}

/// Custom unit type for RLP encodable messages which return `()`.
/// This is because ['alloy_rlp::Encodable`] is not implemented for the build-in `()` type
/// This is because [`alloy_rlp::Encodable`] is not implemented for the build-in `()` type
#[derive(alloy_rlp::RlpEncodable)]
pub struct RlpUnit {}

Expand Down Expand Up @@ -567,7 +567,7 @@ impl From<DispatchError> for scale::Error {
///
/// # Usage
///
/// todo: prev doc test used a contract instance, it was in the `ink!` crate.
/// todo: previous doc test used a contract instance, it was in the `ink!` crate.
pub trait DecodeDispatch: Sized {
/// todo: docs
fn decode_dispatch(input: &mut &[u8]) -> Result<Self, DispatchError>;
Expand Down
6 changes: 0 additions & 6 deletions integration-tests/public/trait-flipper/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ pub mod flipper {

#[ink(message)]
fn get(&self) -> bool {
/*
let registry = ::ink::reflect::TraitDefinitionRegistry::<Environment>{
marker: Default::default()
};
registry.get();
*/
self.value
}
}
Expand Down

0 comments on commit 859b3d9

Please sign in to comment.