Skip to content

Commit

Permalink
Remove test unlock code
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlotfi authored and mrlotfi committed Jul 25, 2024
1 parent 48e5ba3 commit a131c40
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/driver/unlocker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,21 +245,14 @@ export class Unlocker {
const orderHashes = orders.map((order) => order.orderHash);
logger.info(`Posting and acquiring sequence for ${sourceChainId} to ${destChainId} for batch`);
let sequence: bigint, txHash: string;
// if (destChainId === CHAIN_ID_SOLANA) {
// const result = await this.batchPostSolana(orderHashes);
// sequence = result.sequence;
// txHash = result.txHash;
// } else {
// const result = await this.batchPostEvm(destChainId, orderHashes);
// sequence = result.sequence;
// txHash = result.txHash;
// }
if (destChainId === 23) {
sequence = 8n;
txHash = '0x123';
if (destChainId === CHAIN_ID_SOLANA) {
const result = await this.batchPostSolana(orderHashes);
sequence = result.sequence;
txHash = result.txHash;
} else {
sequence = 45n;
txHash = '0x456';
const result = await this.batchPostEvm(destChainId, orderHashes);
sequence = result.sequence;
txHash = result.txHash;
}
const postSequence = sequence;
const postTxHash = txHash;
Expand Down

0 comments on commit a131c40

Please sign in to comment.