Skip to content

Commit

Permalink
Merge pull request #515 from peterferguson/pf/np/smart-contract-sdk-s…
Browse files Browse the repository at this point in the history
…upport

Fixes some build & type bugs in smart contracts
  • Loading branch information
nplasterer authored Oct 22, 2024
2 parents 3d8063d + 1febd29 commit e7454f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ios/Wrappers/AuthParamsWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct AuthParamsWrapper {
dbDirectory: dbDirectory,
historySyncUrl: historySyncUrl,
isSmartContractWallet: isSmartContractWallet,
chainId: blockNumber != nil ? UInt64(chainId!) : nil,
chainId: chainId != nil ? UInt64(chainId!) : nil,
blockNumber: blockNumber != nil ? UInt64(blockNumber!) : nil
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ export async function createV3(

export async function buildV3(
address: string,
chainId?: number | undefined,
environment: 'local' | 'dev' | 'production',
chainId?: number | undefined,
appVersion?: string | undefined,
enableV3?: boolean | undefined,
dbEncryptionKey?: Uint8Array | undefined,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export class Client<
if (signer.isSmartContractWallet()) {
await XMTPModule.receiveSCWSignature(
request.id,
Buffer.from(signatureString)
signatureString
)
} else {
const eSig = splitSignature(signatureString)
Expand Down Expand Up @@ -438,8 +438,8 @@ export class Client<
}
const client = await XMTPModule.buildV3(
address,
chainId,
options.env,
chainId,
options.appVersion,
Boolean(options.enableV3),
options.dbEncryptionKey,
Expand Down

0 comments on commit e7454f0

Please sign in to comment.