Skip to content

Commit

Permalink
ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Apr 5, 2024
1 parent 21f8bcd commit 63589d4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,13 @@ linker = "aarch64-linux-gnu-gcc"

[target.riscv64gc-unknown-linux-gnu]
linker = "riscv64-linux-gnu-gcc"


[alias]
ci-fmt = "fmt --all -- --check"
ci-fmt-fix = "fmt --all"
ci-clippy = "lints clippy --all-targets --all-features"
ci-test-compile = "test --no-run --workspace --all-features --no-default-features"
ci-test = "nextest run --all-features --release --workspace --exclude integration_tests --profile ci"
ci-cucumber = "test --all-features --release --package integration_tests"
#ci-check = "check --workspace --release --all-features --all-targets --lock
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion applications/minotari_console_wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ tari_crypto = { version = "0.20" }
tari_key_manager = { path = "../../base_layer/key_manager" }
tari_libtor = { path = "../../infrastructure/libtor", optional = true }
tari_p2p = { path = "../../base_layer/p2p", features = ["auto-update"] }
tari_script = { path = "../../infrastructure/tari_script" }
tari_shutdown = { path = "../../infrastructure/shutdown" }
tari_utilities = { version = "0.7" }
minotari_wallet = { path = "../../base_layer/wallet", features = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -983,13 +983,13 @@ impl wallet_server::Wallet for WalletGrpcServer {
.map_err(|_| Status::invalid_argument("binary sha is malformed"))?,
message.binary_url,
fee_per_gram,
if !message.sidechain_deployment_key.is_empty() {
if message.sidechain_deployment_key.is_empty() {
None
} else {
Some(
RistrettoSecretKey::from_canonical_bytes(&message.sidechain_deployment_key)
.map_err(|_| Status::invalid_argument("sidechain_deployment_key is malformed"))?,
)
} else {
None
},
)
.await
Expand Down
6 changes: 3 additions & 3 deletions applications/minotari_node/src/grpc/base_node_grpc_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1803,13 +1803,13 @@ impl tari_rpc::base_node_server::BaseNode for BaseNodeGrpcServer {
let mut handler = self.node_service.clone();
let (mut tx, rx) = mpsc::channel(1000);

let sidechain_id = if !request.sidechain_id.is_empty() {
let sidechain_id = if request.sidechain_id.is_empty() {
None
} else {
Some(
PublicKey::from_canonical_bytes(&request.sidechain_id)
.map_err(|e| Status::invalid_argument(format!("Invalid sidechain_id '{}'", e)))?,
)
} else {
None
};

task::spawn(async move {
Expand Down

0 comments on commit 63589d4

Please sign in to comment.