Skip to content

Commit

Permalink
fix: capitalize IOTA, fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Oct 1, 2024
1 parent 51d4804 commit ac7f71a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Iota Sdk
# IOTA Sdk

[![Documentation (master)](https://img.shields.io/badge/docs-master-59f)](https://github.com/iotaledger/iota-rust-sdk/iota_sdk/)

A WIP from-scratch rust sdk for the iota blockchain
A WIP from-scratch rust sdk for the IOTA blockchain
2 changes: 1 addition & 1 deletion crates/iota-rust-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
license = "Apache-2.0"
publish = false
readme = "README.md"
description = "Sdk for the Iota Blockchain"
description = "Sdk for the IOTA Blockchain"

[package.metadata.docs.rs]
# To build locally:
Expand Down
8 changes: 4 additions & 4 deletions crates/iota-rust-sdk/src/types/checkpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ mod serialization {
where
S: Serializer,
{
let mut seq = serializer.serialize_seq(Some(self.0.0.len()))?;
for txn in &self.0.0 {
let mut seq = serializer.serialize_seq(Some(self.0 .0.len()))?;
for txn in &self.0 .0 {
let digests = Digests {
transaction: &txn.transaction,
effects: &txn.effects,
Expand All @@ -404,8 +404,8 @@ mod serialization {
where
S: Serializer,
{
let mut seq = serializer.serialize_seq(Some(self.0.0.len()))?;
for txn in &self.0.0 {
let mut seq = serializer.serialize_seq(Some(self.0 .0.len()))?;
for txn in &self.0 .0 {
seq.serialize_element(&txn.signatures)?;
}
seq.end()
Expand Down
6 changes: 5 additions & 1 deletion crates/iota-rust-sdk/src/types/crypto/zklogin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ impl Bn254FieldElement {
}

// If the value is '0' then just return a slice of length 1 of the final byte
if buf.is_empty() { &self.0[31..] } else { buf }
if buf.is_empty() {
&self.0[31..]
} else {
buf
}
}

pub fn padded(&self) -> &[u8] {
Expand Down

0 comments on commit ac7f71a

Please sign in to comment.