cargo fmt

This commit is contained in:
Jędrzej Stuczyński
2024-02-12 17:00:11 +00:00
parent 4a0e623e3d
commit 288baea49f
2 changed files with 7 additions and 11 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ pub enum Error {
#[error("the provided issuance data wasn't prepared for a free pass")]
NotAFreePass,
#[error("failed to create a secp256k1 signature")]
Secp256k1SignFailure
Secp256k1SignFailure,
}
+5 -9
View File
@@ -1681,6 +1681,7 @@ mod credential_tests {
// generate all the credential requests
let params = bandwidth_credential_params();
let key_pair = nym_coconut::keygen(params);
let epoch = 1;
let voucher_amount = coin(1234, "unym");
let issuance = voucher_fixture(coin(1234, "unym"), None);
@@ -1705,7 +1706,7 @@ mod credential_tests {
)
.unwrap();
let issued = issuance.into_issued_credential(sig);
let issued = issuance.into_issued_credential(sig, epoch);
let spending = issued
.prepare_for_spending(key_pair.verification_key())
.unwrap();
@@ -1718,7 +1719,7 @@ mod credential_tests {
staged_key_pair
.set(KeyPairWithEpoch {
keys: key_pair,
issued_for_epoch: 1,
issued_for_epoch: epoch,
})
.await;
staged_key_pair.validate();
@@ -1738,16 +1739,11 @@ mod credential_tests {
.await
.expect("valid rocket instance");
let epoch_id = 69;
let proposal_id = 42;
// The address is not used, so we can use a duplicate
let gateway_cosmos_addr = validator_address.clone();
let req = VerifyCredentialBody::new(
spending.clone(),
epoch_id,
proposal_id,
gateway_cosmos_addr.clone(),
);
let req =
VerifyCredentialBody::new(spending.clone(), proposal_id, gateway_cosmos_addr.clone());
// Test endpoint with not proposal for the proposal id
let response = client