From 65bf2cc700b020a347de3ac415bf9511f6ae8344 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Sun, 30 Jul 2023 23:20:09 +0200 Subject: [PATCH] Fix mutability of nextSignData --- main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index e6b0b09..396f70f 100644 --- a/main.ts +++ b/main.ts @@ -32,7 +32,11 @@ function printableCoin(coin: Coin): string { } } -let nextSignData: SignerData = { +type Mutable = { + -readonly [Key in keyof Type]: Type[Key]; +}; + +let nextSignData: Mutable = { chainId: "", accountNumber: NaN, sequence: NaN,