Skip to content

Commit 4a697fb

Browse files
πŸ”„ synced file(s) with circlefin/modularwallets-ios-sdk-internal (#9)
synced local file(s) with [circlefin/modularwallets-ios-sdk-internal](https://github.com/circlefin/modularwallets-ios-sdk-internal). <details> <summary>Changed files</summary> <ul> <li>synced local directory <code>CircleModularWalletsCore/</code> with remote directory <code>CircleModularWalletsCore/</code></li> </ul> </details> --- This PR was created automatically by the [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action) workflow run [#12746844989](https://github.com/circlefin/modularwallets-ios-sdk-internal/actions/runs/12746844989)
1 parent 2a2d370 commit 4a697fb

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

β€ŽCircleModularWalletsCore/Resources/Info.plistβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleShortVersionString</key>
6-
<string>1.0.6</string>
6+
<string>1.0.7</string>
77
<key>CFBundleIdentifier</key>
88
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
99
<key>CFBundleName</key>

β€ŽCircleModularWalletsCore/Sources/Accounts/CircleSmartAccount.swiftβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import web3swift
2626
/// - Parameters:
2727
/// - client: The client used to interact with the blockchain.
2828
/// - owner: The owner account associated with the Circle smart account.
29-
/// - version: The version of the Circle smart account. Default is "circle_6900_v1".
29+
/// - version: The version of the Circle smart account. Default is CIRCLE_SMART_ACCOUNT_VERSION_V1.
3030
/// - name: The wallet name assigned to the newly registered account defaults to the format "passkey-yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
3131
///
3232
/// - Throws: BaseError if there are any problems during the wallet creation process.
@@ -35,9 +35,10 @@ import web3swift
3535
public func toCircleSmartAccount<A: Account>(
3636
client: Client,
3737
owner: A,
38-
version: String = "circle_6900_v1",
38+
version: String = CIRCLE_SMART_ACCOUNT_VERSION_V1,
3939
name: String? = nil
4040
) async throws -> CircleSmartAccount<A> where A.T == SignResult {
41+
let version = CIRCLE_SMART_ACCOUNT_VERSION[version] ?? version
4142
let name = name ?? "passkey-\(Utils.getCurrentDateTime())"
4243
return try await .init(client: client, owner: owner, version: version, name: name)
4344
}

β€ŽCircleModularWalletsCore/Sources/Helpers/Constants.swiftβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ import Foundation
2020

2121
public let CIRCLE_BASE_URL = "https://modular-sdk.circle.com/v1/rpc/w3s/buidl"
2222
public let ENTRYPOINT_V07_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
23+
public let CIRCLE_SMART_ACCOUNT_VERSION_V1 = "circle_passkey_account_v1"
24+
25+
let CIRCLE_SMART_ACCOUNT_VERSION: [String: String] = [
26+
CIRCLE_SMART_ACCOUNT_VERSION_V1: "circle_6900_v1",
27+
]
2328

2429
let CONTRACT_ADDRESS: [String: String] = [
2530
MainnetToken.USDT.name: "0xdAC17F958D2ee523a2206206994597C13D831ec7",

β€ŽCircleModularWalletsCore/Sources/Helpers/Extensions/Bundle+Extension.swiftβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Foundation
2121
#if SWIFT_PACKAGE
2222
extension Bundle {
2323
public enum SDK {
24-
public static let version = "1.0.6"
24+
public static let version = "1.0.7"
2525
}
2626
}
2727
#else

0 commit comments

Comments
Β (0)