feature: Signature derives Copy trait (#288)
* feature: Signature derives Copy trait * drive-by: set Celo chain ID in tests
This commit is contained in:
parent
33a39cff86
commit
b014ac9f27
|
@ -494,7 +494,8 @@ mod celo_tests {
|
|||
// Funded with https://celo.org/developers/faucet
|
||||
let wallet = "d652abb81e8c686edba621a895531b1f291289b63b5ef09a94f686a5ecdd5db1"
|
||||
.parse::<LocalWallet>()
|
||||
.unwrap();
|
||||
.unwrap()
|
||||
.set_chain_id(44787u64);
|
||||
|
||||
let client = SignerMiddleware::new(provider, wallet);
|
||||
let client = Arc::new(client);
|
||||
|
|
|
@ -51,7 +51,7 @@ pub enum RecoveryMessage {
|
|||
Hash(H256),
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Copy)]
|
||||
/// An ECDSA signature
|
||||
pub struct Signature {
|
||||
/// R value
|
||||
|
|
|
@ -53,7 +53,8 @@ async fn test_send_transaction() {
|
|||
// Please do not drain this account :)
|
||||
let wallet = "d652abb81e8c686edba621a895531b1f291289b63b5ef09a94f686a5ecdd5db1"
|
||||
.parse::<LocalWallet>()
|
||||
.unwrap();
|
||||
.unwrap()
|
||||
.set_chain_id(44787u64);
|
||||
let client = SignerMiddleware::new(provider, wallet);
|
||||
|
||||
let balance_before = client.get_balance(client.address(), None).await.unwrap();
|
||||
|
|
Loading…
Reference in New Issue