Skip to content

Commit 477fe76

Browse files
authored
Merge pull request #69 from blocknative/fix/types
Fix types inconsistencies Closes #66
2 parents a586fdf + ec75006 commit 477fe76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/stores.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function createBalanceStore(initialState: string | null): BalanceStore {
159159
let stateSyncer: StateSyncer
160160
let emitter
161161

162-
const { subscribe } = derived([address, network], ([$address], set) => {
162+
const { subscribe } = derived([address, network], ([$address]: string[], set: any) => {
163163
if (stateSyncer && !stateSyncer.onChange) {
164164
if ($address && stateSyncer.get && set) {
165165
syncStateWithTimeout({

src/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function validateWalletModule(module: WalletModule): never | void {
155155
validateType({
156156
name: "preferred",
157157
value: preferred,
158-
type: "string",
158+
type: "boolean",
159159
optional: true
160160
})
161161
}

0 commit comments

Comments
 (0)