Skip to content

Commit

Permalink
feat: add .toJSON to TimeLocks (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrvk authored Aug 16, 2024
1 parent 4d8f47a commit a20a8d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cross-chain-order/time-locks/time-locks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ export class TimeLocks {
return new TimeLocks(...params)
}

public toJSON(): string {
return '0x' + this.build().toString(16)
}

public build(): bigint {
return [
this.deployedAt,
Expand Down

0 comments on commit a20a8d5

Please sign in to comment.