This commit is contained in:
Bryan Stitt 2023-06-30 13:52:09 -07:00
parent 501ec21442
commit ee626bfa61

@ -1,11 +1,8 @@
mod common; mod common;
use crate::common::TestApp; use crate::common::TestApp;
use axum::headers::Authorization;
use ethers::{signers::Signer, types::Signature}; use ethers::{signers::Signer, types::Signature};
use hashbrown::HashMap;
use serde::Deserialize; use serde::Deserialize;
use serde_json::Value;
use tracing::{debug, info, trace}; use tracing::{debug, info, trace};
use ulid::Ulid; use ulid::Ulid;
use web3_proxy::frontend::users::authentication::PostLogin; use web3_proxy::frontend::users::authentication::PostLogin;
@ -14,10 +11,10 @@ use web3_proxy::frontend::users::authentication::PostLogin;
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
struct LoginPostResponse { struct LoginPostResponse {
pub bearer_token: Ulid, pub bearer_token: Ulid,
pub rpc_keys: Value, // pub rpc_keys: Value,
/// unknown data gets put here // /// unknown data gets put here
#[serde(flatten, default = "HashMap::default")] // #[serde(flatten, default = "HashMap::default")]
pub extra: HashMap<String, serde_json::Value>, // pub extra: HashMap<String, serde_json::Value>,
} }
/// TODO: 191 and the other message formats in another test /// TODO: 191 and the other message formats in another test