From 377e8356a57d80dd17b746dd05a62b475d9e7d07 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 23 Jun 2023 01:28:47 -0700 Subject: [PATCH] just use Ulid instead of RpcSecretKey type --- web3_proxy/src/frontend/users/rpc_keys.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/frontend/users/rpc_keys.rs b/web3_proxy/src/frontend/users/rpc_keys.rs index 1dc45b2c..c5a6f177 100644 --- a/web3_proxy/src/frontend/users/rpc_keys.rs +++ b/web3_proxy/src/frontend/users/rpc_keys.rs @@ -21,6 +21,7 @@ use migration::sea_orm::{ }; use serde::{Deserialize, Serialize}; use serde_json::json; +use ulid::Ulid; use std::sync::Arc; /// `GET /user/keys` -- Use a bearer token to get the user's api keys and their settings. @@ -41,7 +42,7 @@ pub async fn rpc_keys_get( struct ReturnType<'a> { id: u64, user_id: u64, - secret_key: RpcSecretKey, + secret_key: Ulid, description: Option, private_txs: bool, active: bool,