Skip to content

Commit 162d1e5

Browse files
committed
fix: get appAuthImplementation failed.
1 parent 04b6bed commit 162d1e5

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

kms/auth-eth/src/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export async function build(): Promise<FastifyInstance> {
5757
kmsContractAddr: kmsContractAddr,
5858
gatewayAppId: batch[0],
5959
chainId: batch[1],
60+
appAuthImplementation: batch[2], // NOTE: for backward compatibility
6061
appImplementation: batch[2],
6162
};
6263
});

kms/src/main_service/upgrade_authority.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub(crate) struct AuthApiInfoResponse {
5252
pub kms_contract_addr: String,
5353
pub gateway_app_id: String,
5454
pub chain_id: u64,
55-
pub app_auth_implementation: String,
55+
pub app_implementation: String,
5656
}
5757

5858
#[derive(Debug, Serialize, Deserialize)]
@@ -62,7 +62,7 @@ pub(crate) struct GetInfoResponse {
6262
pub gateway_app_id: Option<String>,
6363
pub kms_contract_address: Option<String>,
6464
pub chain_id: Option<u64>,
65-
pub app_auth_implementation: Option<String>,
65+
pub app_implementation: Option<String>,
6666
}
6767

6868
impl AuthApi {
@@ -97,7 +97,7 @@ impl AuthApi {
9797
kms_contract_address: None,
9898
gateway_app_id: Some(dev.gateway_app_id.clone()),
9999
chain_id: None,
100-
app_auth_implementation: None,
100+
app_implementation: None,
101101
}),
102102
AuthApi::Webhook { webhook } => {
103103
let client = reqwest::Client::new();
@@ -109,7 +109,7 @@ impl AuthApi {
109109
kms_contract_address: Some(info.kms_contract_addr.clone()),
110110
chain_id: Some(info.chain_id),
111111
gateway_app_id: Some(info.gateway_app_id.clone()),
112-
app_auth_implementation: Some(info.app_auth_implementation.clone()),
112+
app_implementation: Some(info.app_implementation.clone()),
113113
})
114114
}
115115
}

0 commit comments

Comments
 (0)