Skip to content

Commit

Permalink
Fix mutability of nextSignData
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jul 30, 2023
1 parent 038c772 commit 65bf2cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ function printableCoin(coin: Coin): string {
}
}

let nextSignData: SignerData = {
type Mutable<Type> = {
-readonly [Key in keyof Type]: Type[Key];
};

let nextSignData: Mutable<SignerData> = {
chainId: "",
accountNumber: NaN,
sequence: NaN,
Expand Down

0 comments on commit 65bf2cc

Please sign in to comment.