Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

chore: update workflow configs #46

Merged
merged 4 commits into from Oct 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Expand Up @@ -3,8 +3,8 @@ name: Lint
on:
push:
branches:
- "*"
- "*/*"
- "master"
- "develop"
pull_request:
types: [ready_for_review, synchronize, opened]

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -3,8 +3,8 @@ name: Test
on:
push:
branches:
- "*"
- "*/*"
- "master"
- "develop"
pull_request:
types: [ready_for_review, synchronize, opened]

Expand Down
1 change: 0 additions & 1 deletion src/configuration/fees.rs
Expand Up @@ -47,5 +47,4 @@ mod tests {
set(TransactionType::Vote, 0);
assert_eq!(get(TransactionType::Vote), 0);
}

}
4 changes: 2 additions & 2 deletions src/identities/address.rs
Expand Up @@ -41,8 +41,8 @@ pub fn validate(address: &str, network_version: Option<u8>) -> bool {
};

let bytes = base58::from_check(address);
if bytes.is_ok() {
return *bytes.unwrap().first().unwrap() == network_version;
if let Ok(value) = bytes {
return *value.first().unwrap() == network_version;
}

false
Expand Down
4 changes: 2 additions & 2 deletions src/transactions/builder.rs
Expand Up @@ -93,8 +93,8 @@ fn sign(
transaction.timestamp = slot::get_time();
transaction.sign(passphrase);

if second_passphrase.is_some() {
transaction.second_sign(second_passphrase.unwrap());
if let Some(value) = second_passphrase {
transaction.second_sign(value);
}

transaction.id = transaction.get_id();
Expand Down
1 change: 0 additions & 1 deletion src/utils/message.rs
Expand Up @@ -89,5 +89,4 @@ mod tests {
let sig = Message::sign("Hello World", "this is a top secret passphrase");
assert_eq!(sig.signature, "304402200fb4adddd1f1d652b544ea6ab62828a0a65b712ed447e2538db0caebfa68929e02205ecb2e1c63b29879c2ecf1255db506d671c8b3fa6017f67cfd1bf07e6edd1cc8");
}

}