Skip to content

Commit

Permalink
fix: siwx types export
Browse files Browse the repository at this point in the history
  • Loading branch information
zoruka committed Nov 13, 2024
1 parent c4fea48 commit f2fcb2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/appkit/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -719,14 +719,14 @@ export class AppKit {

const siwx = SIWXUtil.getSIWX()

if (siwx) {
if (siwx && this.universalProvider) {
// Ignores chainId and account address to get other message data
const siwxMessage = await siwx.createMessage({
chainId: '',
accountAddress: ''
})

const result = await this.universalProvider?.authenticate({
const result = await this.universalProvider.authenticate({
nonce: siwxMessage.nonce,
domain: siwxMessage.domain,
uri: siwxMessage.uri,
Expand All @@ -751,7 +751,7 @@ export class AppKit {

return {
data: siwxMessage,
message,
message: message || '',
signature: cacao.s.s,
cacao
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/exports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ export { OptionsUtil } from '../src/utils/OptionsUtil.js'
export { SIWXUtil } from '../src/utils/SIWXUtil.js'

export type * from '../src/utils/TypeUtil.js'
export type * from '../src/utils/TypeUtil.js'
export type * from '../src/utils/SIWXUtil.js'

0 comments on commit f2fcb2c

Please sign in to comment.