Skip to content

Commit 3c6d706

Browse files
committed
fix(coprocessor): tmp fix
1 parent 5c3e33e commit 3c6d706

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coprocessor/fhevm-engine/gw-listener/src/gw_listener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ impl<P: Provider<Ethereum> + Clone + 'static, A: AwsS3Interface + Clone + 'stati
322322
// TODO: check if we can avoid the cast from u256 to i64
323323
sqlx::query!(
324324
"WITH ins AS (
325-
INSERT INTO verify_proofs (zk_proof_id, chain_id, contract_address, user_address, input, extra_data, transaction_id)
325+
INSERT INTO verify_proofs (zk_proof_id, host_chain_id, contract_address, user_address, input, extra_data, transaction_id)
326326
VALUES ($1, $2, $3, $4, $5, $6, $7)
327327
ON CONFLICT(zk_proof_id) DO NOTHING
328328
)

coprocessor/fhevm-engine/transaction-sender/src/ops/verify_proof.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ where
275275
self.remove_proofs_by_retry_count().await?;
276276
}
277277
let rows = sqlx::query!(
278-
"SELECT zk_proof_id, chain_id, contract_address, user_address, handles, verified, retry_count, extra_data, transaction_id
278+
"SELECT zk_proof_id, host_chain_id, contract_address, user_address, handles, verified, retry_count, extra_data, transaction_id
279279
FROM verify_proofs
280280
WHERE verified IS NOT NULL AND retry_count < $1
281281
ORDER BY zk_proof_id
@@ -330,7 +330,7 @@ where
330330
.contract_address
331331
.parse()
332332
.expect("invalid contract address"),
333-
contractChainId: U256::from(row.chain_id),
333+
contractChainId: U256::from(row.host_chain_id),
334334
extraData: row.extra_data.clone().into(),
335335
}
336336
.eip712_signing_hash(&domain);

0 commit comments

Comments
 (0)