File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 pkgs = import nixpkgs {
1515 inherit system overlays ;
1616 } ;
17+ cargoMeta = builtins . fromTOML ( builtins . readFile ./Cargo.toml ) ;
1718 in {
1819 packages . default = pkgs . rustPlatform . buildRustPackage {
19- pname = "blutgang" ;
20- version = "0.3.2" ;
20+ pname = cargoMeta . package . name ;
21+ version = cargoMeta . package . version ;
2122 src = ./. ;
2223 cargoLock = {
2324 lockFile = ./Cargo.lock ;
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ impl Rpc {
167167 Some ( number) => number,
168168 None => {
169169 return Err ( RpcError :: InvalidResponse (
170- "error: Invalid response " . to_string ( ) ,
170+ "error: Can't get finalized block! " . to_string ( ) ,
171171 ) )
172172 }
173173 } ;
@@ -205,7 +205,7 @@ fn extract_number(rx: &str) -> Result<u64, RpcError> {
205205 Some ( number) => number,
206206 None => {
207207 return Err ( RpcError :: InvalidResponse (
208- "error: Invalid response" . to_string ( ) ,
208+ "error: Extracting response from request failed! " . to_string ( ) ,
209209 ) )
210210 }
211211 } ;
You can’t perform that action at this time.
0 commit comments