Skip to content

Commit

Permalink
chore: update test snapshots and pre check status
Browse files Browse the repository at this point in the history
Signed-off-by: Ricky Saechao <[email protected]>
  • Loading branch information
RickyLB committed Jun 3, 2024
1 parent 36be312 commit caa0da2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Sources/Hedera/MirrorNodeRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal struct MirrorNodeRouter {
tokensAccountRoute: "/accounts/%@/tokens",
]

private func MirrorNodeRouter() {}
private func mirrorNodeRouter() {}

static func getMirrorNodeUrl(_ mirrorNetwork: [String], _ ledgerId: LedgerId?) throws -> String {
var mirrorNodeAddress: String = ""
Expand Down
7 changes: 3 additions & 4 deletions Tests/HederaE2ETests/Contract/ContractCreate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,11 @@ internal final class ContractCreate: XCTestCase {
.constructorParameters(ContractFunctionParameters().addString("Hello from Hedera."))
.bytecodeFileId(bytecode.fileId)
.contractMemo("[e2e::ContractCreateTransaction]")
.execute(testEnv.client)
.getReceipt(testEnv.client),
.execute(testEnv.client),
"expected error creating contract"
) { error in
guard case .receiptStatus(let status, transactionId: _) = error.kind else {
XCTFail("`\(error.kind)` is not `.receiptStatus`")
guard case .transactionPreCheckStatus(let status, transactionId: _) = error.kind else {
XCTFail("`\(error.kind)` is not `.transactionPreCheckStatus`")
return
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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))
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))
Original file line number Diff line number Diff line change
@@ -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))
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 comments on commit caa0da2

Please sign in to comment.