diff --git a/avow-protocol/telegram-bot/avow-telegram-bot/src/stamp-mock.affine b/avow-protocol/telegram-bot/avow-telegram-bot/src/stamp-mock.affine index cd1375bc..656044c4 100644 --- a/avow-protocol/telegram-bot/avow-telegram-bot/src/stamp-mock.affine +++ b/avow-protocol/telegram-bot/avow-telegram-bot/src/stamp-mock.affine @@ -131,7 +131,7 @@ pub fn verify_rate_limit(p: RateLimitParams) -> VerificationResult { pub fn generate_proof(proof_type: String) -> Proof { let ts = time_ms(); - Proof { + Proof #{ proof_type: proof_type ++ "_verification", timestamp: ts, signature: "mock_sig_" ++ show(ts) ++ "_" ++ random_string(7), diff --git a/avow-protocol/telegram-bot/avow-telegram-bot/test-mock.affine b/avow-protocol/telegram-bot/avow-telegram-bot/test-mock.affine index ea697517..cdbcfb3c 100644 --- a/avow-protocol/telegram-bot/avow-telegram-bot/test-mock.affine +++ b/avow-protocol/telegram-bot/avow-telegram-bot/test-mock.affine @@ -92,7 +92,7 @@ fn result_to_string(r: VerificationResult) -> String { } fn make_valid_unsub() -> UnsubscribeParams { - UnsubscribeParams { + UnsubscribeParams #{ url: "https://example.com/unsubscribe", tested_at: mock_now() - 5000, response_code: 200, @@ -112,7 +112,7 @@ pub fn test_verify_unsubscribe_valid() -> Bool { } pub fn test_verify_unsubscribe_invalid_url() -> Bool { - let p = UnsubscribeParams { + let p = UnsubscribeParams #{ url: "not_https", tested_at: mock_now() - 5000, response_code: 200, @@ -127,7 +127,7 @@ pub fn test_verify_unsubscribe_invalid_url() -> Bool { } pub fn test_verify_unsubscribe_stale_timestamp() -> Bool { - let p = UnsubscribeParams { + let p = UnsubscribeParams #{ url: "https://example.com/unsubscribe", tested_at: 0, response_code: 200, @@ -142,7 +142,7 @@ pub fn test_verify_unsubscribe_stale_timestamp() -> Bool { } pub fn test_verify_unsubscribe_bad_response_code() -> Bool { - let p = UnsubscribeParams { + let p = UnsubscribeParams #{ url: "https://example.com/unsubscribe", tested_at: mock_now() - 5000, response_code: 404, @@ -157,7 +157,7 @@ pub fn test_verify_unsubscribe_bad_response_code() -> Bool { } pub fn test_verify_consent_valid() -> Bool { - let p = ConsentParams { + let p = ConsentParams #{ initial_request: 1000000, confirmation: 1100000, ip_address: "192.168.1.1", @@ -170,7 +170,7 @@ pub fn test_verify_consent_valid() -> Bool { } pub fn test_verify_consent_simultaneous() -> Bool { - let p = ConsentParams { + let p = ConsentParams #{ initial_request: 1000000, confirmation: 1000000, ip_address: "192.168.1.1",