mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-02-14 10:45:47 +00:00
Merge pull request #115 from str4d/windows-typo
librustzcash: Fix typo in Windows parameter init; Correctly map sprout_path. Includes a GitHub actions improvement
This commit is contained in:
commit
563961e606
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: Rust
|
name: Rust
|
||||||
|
|
||||||
on: [push]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
@ -169,7 +169,7 @@ pub extern "system" fn librustzcash_init_zksnark_params(
|
|||||||
let sprout_path = if sprout_path.is_null() {
|
let sprout_path = if sprout_path.is_null() {
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
Some(OsStr::from_wide(unsafe {
|
Some(OsString::from_wide(unsafe {
|
||||||
slice::from_raw_parts(sprout_path, sprout_path_len)
|
slice::from_raw_parts(sprout_path, sprout_path_len)
|
||||||
}))
|
}))
|
||||||
};
|
};
|
||||||
@ -179,7 +179,7 @@ pub extern "system" fn librustzcash_init_zksnark_params(
|
|||||||
spend_hash,
|
spend_hash,
|
||||||
Path::new(&output_path),
|
Path::new(&output_path),
|
||||||
output_hash,
|
output_hash,
|
||||||
Path::new(&sprout_path),
|
sprout_path.as_ref().map(|p| Path::new(p)),
|
||||||
sprout_hash,
|
sprout_hash,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user