Skip to content

Commit 4fa34b1

Browse files
committed
Refactoring
1 parent 0bfd53b commit 4fa34b1

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

packages/sequencer/src/settlement/SettlementModule.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,7 @@ export class SettlementModule
160160
}
161161

162162
protected isSignedSettlement(): boolean {
163-
return (
164-
// TODO Enable, add tests that test both signed settlement and normal
165-
!this.baseLayer.isLocalBlockChain() &&
166-
!this.areProofsEnabled.areProofsEnabled
167-
);
163+
return !this.areProofsEnabled.areProofsEnabled;
168164
}
169165

170166
public signTransaction(
@@ -356,7 +352,6 @@ export class SettlementModule
356352
this.events.emit("settlement-submitted", batch);
357353

358354
return {
359-
// transactionHash: sent.hash() ?? "",
360355
batches: [batch.height],
361356
promisedMessagesHash: latestSequenceStateHash.toString(),
362357
};
@@ -384,13 +379,6 @@ export class SettlementModule
384379
? new SignedSettlementPermissions()
385380
: new ProvenSettlementPermissions();
386381

387-
if (this.baseLayer.config.network.type !== "local") {
388-
// const ac1 = await fetchAccount({ publicKey: feepayer });
389-
// console.log(ac1);
390-
}
391-
392-
// this.baseLayer
393-
// .originalNetwork!
394382
const tx = await Mina.transaction(
395383
{
396384
sender: feepayer,

packages/sequencer/test/settlement/Settlement.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { settlementTestFn } from "./Settlement";
22

3-
describe.each(["signed", "mock-proofs"] as const)(
3+
describe.each(["mock-proofs", "signed"] as const)(
44
"settlement contracts: localblockchain - %s",
55
(type) => {
66
settlementTestFn(type, {

0 commit comments

Comments
 (0)