Skip to content

Commit 859b3d9

Browse files
authored
Minor fixes for some CI failures (use-ink#2383)
1 parent ac01b4e commit 859b3d9

File tree

6 files changed

+9
-14
lines changed

6 files changed

+9
-14
lines changed

.config/cargo_spellcheck.dic

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ FFI
1212
Gnosis
1313
GPL
1414
KECCAK
15+
Keccak
1516
L1
1617
L2
1718
Polkadot
1819
PolkaVM
1920
PSP22
2021
RPC
22+
RLP
2123
SHA
2224
UI/S
2325
URI
@@ -29,6 +31,7 @@ bitvector
2931
bitmask
3032
bitwise
3133
callee
34+
codec
3235
codegen
3336
comparator
3437
const

.github/rust-info/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ runs:
1111
cargo spellcheck --version
1212
bash --version
1313
substrate-contracts-node --version
14-
cargo-contract --version
14+
cargo contract --version
1515
shell: bash

crates/env/src/engine/on_chain/pallet_revive.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ use crate::{
2222
FromAddr,
2323
LimitParamsV2,
2424
},
25-
dispatch::{
26-
DecodeDispatch,
27-
DispatchError,
28-
},
2925
engine::on_chain::{
3026
EncodeScope,
3127
EnvInstance,
@@ -45,6 +41,8 @@ use crate::{
4541
},
4642
types::FromLittleEndian,
4743
Clear,
44+
DecodeDispatch,
45+
DispatchError,
4846
EnvBackend,
4947
Environment,
5048
Result,

crates/ink/ir/src/ir/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl Default for Environment {
156156
#[derive(Debug, Clone, PartialEq, Eq, Default)]
157157

158158
pub enum AbiEncoding {
159-
/// Scale codec, the default.
159+
/// SCALE codec, the default.
160160
#[default]
161161
Scale,
162162
/// RLP codec, useful for compatibility with Solidity contracts.

crates/primitives/src/reflect/dispatch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ pub enum Encoding {
232232
}
233233

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

@@ -567,7 +567,7 @@ impl From<DispatchError> for scale::Error {
567567
///
568568
/// # Usage
569569
///
570-
/// todo: prev doc test used a contract instance, it was in the `ink!` crate.
570+
/// todo: previous doc test used a contract instance, it was in the `ink!` crate.
571571
pub trait DecodeDispatch: Sized {
572572
/// todo: docs
573573
fn decode_dispatch(input: &mut &[u8]) -> Result<Self, DispatchError>;

integration-tests/public/trait-flipper/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ pub mod flipper {
3737

3838
#[ink(message)]
3939
fn get(&self) -> bool {
40-
/*
41-
let registry = ::ink::reflect::TraitDefinitionRegistry::<Environment>{
42-
marker: Default::default()
43-
};
44-
registry.get();
45-
*/
4640
self.value
4741
}
4842
}

0 commit comments

Comments
 (0)