mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 07:11:36 +02:00
Update copyright license year to 2021 (#587)
This commit is contained in:
+4
-4
@@ -1,4 +1,4 @@
|
||||
// Copyright 2019 The Grin Developers
|
||||
// Copyright 2021 The Grin Developers
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -479,7 +479,7 @@ macro_rules! doctest_helper_setup_doc_env_foreign {
|
||||
// don't run on windows CI, which gives very inconsistent results
|
||||
if cfg!(windows) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Set our local chain_type for testing.
|
||||
global::set_local_chain_type(global::ChainTypes::AutomatedTesting);
|
||||
@@ -497,7 +497,7 @@ macro_rules! doctest_helper_setup_doc_env_foreign {
|
||||
let node_client = HTTPNodeClient::new(&wallet_config.check_node_api_http_addr, None);
|
||||
let mut wallet = Box::new(
|
||||
DefaultWalletImpl::<'static, HTTPNodeClient>::new(node_client.clone()).unwrap(),
|
||||
)
|
||||
)
|
||||
as Box<
|
||||
WalletInst<
|
||||
'static,
|
||||
@@ -505,7 +505,7 @@ macro_rules! doctest_helper_setup_doc_env_foreign {
|
||||
HTTPNodeClient,
|
||||
ExtKeychain,
|
||||
>,
|
||||
>;
|
||||
>;
|
||||
let lc = wallet.lc_provider().unwrap();
|
||||
let _ = lc.set_top_level_directory(&wallet_config.data_file_dir);
|
||||
lc.open_wallet(None, pw, false, false);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2019 The Grin Developers
|
||||
// Copyright 2021 The Grin Developers
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -557,7 +557,7 @@ macro_rules! doctest_helper_json_rpc_foreign_assert_response {
|
||||
$blocks_to_mine,
|
||||
$init_tx,
|
||||
$init_invoice_tx,
|
||||
)
|
||||
)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
|
||||
@@ -566,7 +566,7 @@ macro_rules! doctest_helper_json_rpc_foreign_assert_response {
|
||||
"(left != right) \nleft: {}\nright: {}",
|
||||
serde_json::to_string_pretty(&response).unwrap(),
|
||||
serde_json::to_string_pretty(&expected_response).unwrap()
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright 2019 The Grin Developers
|
||||
// Copyright 2021 The Grin Developers
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
// Copyright 2019 The Grin Developers
|
||||
// Copyright 2021 The Grin Developers
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -2436,7 +2436,7 @@ macro_rules! doctest_helper_setup_doc_env {
|
||||
// don't run on windows CI, which gives very inconsistent results
|
||||
if cfg!(windows) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Set our local chain_type for testing.
|
||||
global::set_local_chain_type(global::ChainTypes::AutomatedTesting);
|
||||
@@ -2454,7 +2454,7 @@ macro_rules! doctest_helper_setup_doc_env {
|
||||
let node_client = HTTPNodeClient::new(&wallet_config.check_node_api_http_addr, None);
|
||||
let mut wallet = Box::new(
|
||||
DefaultWalletImpl::<'static, HTTPNodeClient>::new(node_client.clone()).unwrap(),
|
||||
)
|
||||
)
|
||||
as Box<
|
||||
WalletInst<
|
||||
'static,
|
||||
@@ -2462,7 +2462,7 @@ macro_rules! doctest_helper_setup_doc_env {
|
||||
HTTPNodeClient,
|
||||
ExtKeychain,
|
||||
>,
|
||||
>;
|
||||
>;
|
||||
let lc = wallet.lc_provider().unwrap();
|
||||
let _ = lc.set_top_level_directory(&wallet_config.data_file_dir);
|
||||
lc.open_wallet(None, pw, false, false);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2019 The Grin Developers
|
||||
// Copyright 2021 The Grin Developers
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -2348,7 +2348,7 @@ macro_rules! doctest_helper_json_rpc_owner_assert_response {
|
||||
// disable for now on windows
|
||||
// TODO: Fix properly
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
{
|
||||
{
|
||||
use grin_wallet_api::run_doctest_owner;
|
||||
use serde_json;
|
||||
use serde_json::Value;
|
||||
@@ -2372,7 +2372,7 @@ macro_rules! doctest_helper_json_rpc_owner_assert_response {
|
||||
$lock_tx,
|
||||
$finalize_tx,
|
||||
$payment_proof,
|
||||
)
|
||||
)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
|
||||
@@ -2382,7 +2382,7 @@ macro_rules! doctest_helper_json_rpc_owner_assert_response {
|
||||
serde_json::to_string_pretty(&response).unwrap(),
|
||||
serde_json::to_string_pretty(&expected_response).unwrap()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright 2019 The Grin Developers
|
||||
// Copyright 2021 The Grin Developers
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2019 The Grin Developers
|
||||
// Copyright 2021 The Grin Developers
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
|
||||
Reference in New Issue
Block a user