Skip to content

Commit

Permalink
TransferRequiredInputTests
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Aug 29, 2024
1 parent d2f65e7 commit 473f237
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class TransferInputCalculatorV2(
wallet: InternalWalletState,
subaccountNumber: Int?,
): InternalTransferInputState {
if (wallet.isWalletConnected && transfer.type != null) {
if (wallet.isAccountConnected && transfer.type != null) {
finalize(transfer)

subaccountTransformer.applyTransferToWallet(
Expand All @@ -27,7 +27,6 @@ internal class TransferInputCalculatorV2(
period = CalculationPeriod.post,
)
}

return transfer
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ internal typealias VerificationFunction = (response: StateResponse) -> Unit
open class BaseTests(
private val maxSubaccountNumber: Int,
private val useParentSubaccount: Boolean,
private val staticTyping: Boolean = false, // turn on static typing for testing
private val staticTyping: Boolean = true, // turn on static typing for testing
) {
open val doAsserts = true
internal val deploymentUri = "https://api.examples.com"
Expand Down
Loading

0 comments on commit 473f237

Please sign in to comment.