Skip to content

Commit 10fb994

Browse files
committed
chore: update test snapshots and pre check status
Signed-off-by: Ricky Saechao <ricky@launchbadge.com>
1 parent 8944b55 commit 10fb994

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

Sources/Hedera/MirrorNodeRouter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ internal struct MirrorNodeRouter {
4040
tokensAccountRoute: "/accounts/%@/tokens",
4141
]
4242

43-
private func MirrorNodeRouter() {}
43+
private func mirrorNodeRouter() {}
4444

4545
static func getMirrorNodeUrl(_ mirrorNetwork: [String], _ ledgerId: LedgerId?) throws -> String {
4646
var mirrorNodeAddress: String = ""

Tests/HederaE2ETests/Contract/ContractCreate.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,11 @@ internal final class ContractCreate: XCTestCase {
9292
.constructorParameters(ContractFunctionParameters().addString("Hello from Hedera."))
9393
.bytecodeFileId(bytecode.fileId)
9494
.contractMemo("[e2e::ContractCreateTransaction]")
95-
.execute(testEnv.client)
96-
.getReceipt(testEnv.client),
95+
.execute(testEnv.client),
9796
"expected error creating contract"
9897
) { error in
99-
guard case .receiptStatus(let status, transactionId: _) = error.kind else {
100-
XCTFail("`\(error.kind)` is not `.receiptStatus`")
98+
guard case .transactionPreCheckStatus(let status, transactionId: _) = error.kind else {
99+
XCTFail("`\(error.kind)` is not `.transactionPreCheckStatus`")
101100
return
102101
}
103102

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ContractInfo(contractId: 0.0.1, accountId: 0.0.5006, contractAccountId: "3", adminKey: nil, expirationTime: Optional(1554158728000000000), autoRenewPeriod: Optional(Hedera.Duration(seconds: 432000)), storage: 0, contractMemo: "flook", balance: 8 tℏ, isDeleted: false, autoRenewAccountId: nil, maxAutomaticTokenAssociations: 0, ledgerId: testnet, stakingInfo: Hedera.StakingInfo(declineStakingReward: false, stakePeriodStart: nil, pendingReward: 0 tℏ, stakedToMe: 0 tℏ, stakedAccountId: nil, stakedNodeId: nil))
1+
ContractInfo(contractId: 0.0.1, accountId: 0.0.5006, contractAccountId: "3", adminKey: nil, expirationTime: Optional(1554158728000000000), autoRenewPeriod: Optional(Hedera.Duration(seconds: 432000)), storage: 0, contractMemo: "flook", balance: 8 tℏ, isDeleted: false, autoRenewAccountId: nil, maxAutomaticTokenAssociations: 0, tokenRelationships: [:], ledgerId: testnet, stakingInfo: Hedera.StakingInfo(declineStakingReward: false, stakePeriodStart: nil, pendingReward: 0 tℏ, stakedToMe: 0 tℏ, stakedAccountId: nil, stakedNodeId: nil))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ContractInfo(contractId: 0.0.1, accountId: 0.0.5006, contractAccountId: "3", adminKey: nil, expirationTime: Optional(1554158728000000000), autoRenewPeriod: Optional(Hedera.Duration(seconds: 432000)), storage: 0, contractMemo: "flook", balance: 8 tℏ, isDeleted: false, autoRenewAccountId: nil, maxAutomaticTokenAssociations: 0, ledgerId: testnet, stakingInfo: Hedera.StakingInfo(declineStakingReward: false, stakePeriodStart: nil, pendingReward: 0 tℏ, stakedToMe: 0 tℏ, stakedAccountId: nil, stakedNodeId: nil))
1+
ContractInfo(contractId: 0.0.1, accountId: 0.0.5006, contractAccountId: "3", adminKey: nil, expirationTime: Optional(1554158728000000000), autoRenewPeriod: Optional(Hedera.Duration(seconds: 432000)), storage: 0, contractMemo: "flook", balance: 8 tℏ, isDeleted: false, autoRenewAccountId: nil, maxAutomaticTokenAssociations: 0, tokenRelationships: [:], ledgerId: testnet, stakingInfo: Hedera.StakingInfo(declineStakingReward: false, stakePeriodStart: nil, pendingReward: 0 tℏ, stakedToMe: 0 tℏ, stakedAccountId: nil, stakedNodeId: nil))

0 commit comments

Comments
 (0)