feat: multi accounts

This commit is contained in:
codytseng
2024-12-23 23:22:49 +08:00
parent ee0c702135
commit 33ac5e60b6
17 changed files with 426 additions and 137 deletions

5
src/lib/account.ts Normal file
View File

@@ -0,0 +1,5 @@
import { TAccountPointer } from '@/types'
export function isSameAccount(a: TAccountPointer | null, b: TAccountPointer | null) {
return a?.pubkey === b?.pubkey && a?.signerType === b?.signerType
}