diff --git a/src/immutables/immutables.ts b/src/immutables/immutables.ts index 22b32a9..78ec288 100644 --- a/src/immutables/immutables.ts +++ b/src/immutables/immutables.ts @@ -100,10 +100,13 @@ export class Immutables { return Immutables.new({...this, ...dstComplement}) } - public withDeployedAt(time: bigint): this { - this.timeLocks.setDeployedAt(time) - - return this + public withDeployedAt(time: bigint): Immutables { + return Immutables.new({ + ...this, + timeLocks: TimeLocks.fromBigInt( + this.timeLocks.build() + ).setDeployedAt(time) + }) } public withTaker(taker: Address): Immutables {