Skip to content

Commit

Permalink
Fix daily CI lint failure (#22)
Browse files Browse the repository at this point in the history
Fix CI failure, remove outdated TODO
  • Loading branch information
sterliakov authored Jan 16, 2024
1 parent 8383eec commit 967eb9b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "thor-devkit"
version = "0.1.0-beta.2"
authors = ["Stanislav Terliakov <[email protected]>"]
description = "Rust library to aid coding with VeChain, eg. Wallets/Tx/Sign/Verify."
documentation = "https://docs.rs/thor-devkit.rs"
description = "Rust library to aid coding with VeChain: wallets, transactions signing, encoding and verification, smart contract ABI interfacing, etc."
documentation = "https://docs.rs/thor-devkit"
repository = "https://github.com/sterliakov/thor-devkit.rs"
readme = "README.md"
keywords = ["vechain", "crypto", "blockchain", "cryptography"]
Expand Down
2 changes: 1 addition & 1 deletion examples/transaction_broadcast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async fn create_and_broadcast_transaction() -> AResult<()> {
.unwrap();
let transaction = Transaction {
chain_tag: node.chain_tag,
block_ref: block_ref,
block_ref,
expiration: 128,
clauses: vec![Clause {
to: Some(recipient),
Expand Down
4 changes: 1 addition & 3 deletions src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ rlp_encodable! {
}
}

// TODO: add serde optional support

impl Transaction {
/// Gas cost for whole transaction execution.
pub const TRANSACTION_GAS: u64 = 5_000;
Expand Down Expand Up @@ -373,7 +371,7 @@ impl Reserved {
self.features & Self::DELEGATED_BIT != 0
}
pub fn is_empty(&self) -> bool {
//! Belongs to delegated transaction?
//! Belongs to non-delegated transaction?
self.features == 0 && self.unused.is_empty()
}
}
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn blake2_256<S: AsRef<[u8]>>(bytes: &[S]) -> [u8; 32] {
//! of the input sequence.
let mut hasher = Blake2b256::new();
bytes.iter().for_each(|b| hasher.update(b));
hasher.finalize().try_into().unwrap()
hasher.finalize().into()
}

pub fn keccak<S: AsRef<[u8]>>(bytes: S) -> [u8; 32] {
Expand Down

0 comments on commit 967eb9b

Please sign in to comment.