Conversation
Unit Test Results 12 files 12 suites 1m 8s ⏱️ For more details on these failures, see this check. Results for commit 0d20757. ♻️ This comment has been updated with latest results. |
PR SummaryIntroduced a Kotlin DSL for building and sending Flow transactions, mirroring the flow-swift builder style. Added helper extensions for extracting created account addresses from transaction results, new Cadence scripts for child accounts, EVM operations, staking, and token balances. Refactored the Changes
autogenerated by presubmit.ai |
There was a problem hiding this comment.
🚨 Pull request needs attention.
Review Summary
Commits Considered (3)
Files Processed (29)
- .gitignore (1 hunk)
- flow/src/androidMain/kotlin/org/onflow/flow/crypto/Crypto.kt (2 hunks)
- flow/src/androidMain/kotlin/org/onflow/flow/infrastructure/scripts/ContractAddressRegister.kt (3 hunks)
- flow/src/androidMain/resources/scripts/common/addresses.json (1 hunk)
- flow/src/androidMain/resources/scripts/common/child/get_child_account_meta.cdc (1 hunk)
- flow/src/androidMain/resources/scripts/common/child/get_child_addresses.cdc (1 hunk)
- flow/src/androidMain/resources/scripts/common/evm/call_contract.cdc (1 hunk)
- flow/src/androidMain/resources/scripts/common/evm/evm_run.cdc (1 hunk)
- flow/src/androidMain/resources/scripts/common/staking/get_delegator_info.cdc (1 hunk)
- flow/src/androidMain/resources/scripts/common/token/get_token_balance_storage.cdc (1 hunk)
- flow/src/commonMain/kotlin/org/onflow/flow/AddressRegistry.kt (3 hunks)
- flow/src/commonMain/kotlin/org/onflow/flow/CadenceTarget.kt (1 hunk)
- flow/src/commonMain/kotlin/org/onflow/flow/FlowApi.kt (1 hunk)
- flow/src/commonMain/kotlin/org/onflow/flow/TransactionDSL.kt (1 hunk)
- flow/src/commonMain/kotlin/org/onflow/flow/TransactionResultExtensions.kt (1 hunk)
- flow/src/commonMain/kotlin/org/onflow/flow/apis/TransactionsApi.kt (4 hunks)
- flow/src/commonMain/kotlin/org/onflow/flow/cadence/CadenceQueries.kt (1 hunk)
- flow/src/commonMain/kotlin/org/onflow/flow/evm/EVMManager.kt (6 hunks)
- flow/src/commonMain/kotlin/org/onflow/flow/models/Address.kt (1 hunk)
- flow/src/commonMain/kotlin/org/onflow/flow/models/Signer.kt (1 hunk)
- flow/src/commonMain/kotlin/org/onflow/flow/websocket/FlowWebSocketClient.kt (1 hunk)
- flow/src/commonMain/resources/scripts/common/addresses.json (1 hunk)
- flow/src/commonMain/resources/scripts/common/child/get_child_account_meta.cdc (1 hunk)
- flow/src/commonMain/resources/scripts/common/child/get_child_addresses.cdc (1 hunk)
- flow/src/commonMain/resources/scripts/common/evm/call_contract.cdc (1 hunk)
- flow/src/commonMain/resources/scripts/common/evm/evm_run.cdc (1 hunk)
- flow/src/commonMain/resources/scripts/common/staking/get_delegator_info.cdc (1 hunk)
- flow/src/commonMain/resources/scripts/common/token/get_token_balance_storage.cdc (1 hunk)
- flow/src/commonTest/kotlin/org/onflow/flow/TransactionResultExtensionsTest.kt (1 hunk)
Actionable Comments (1)
-
flow/src/commonMain/kotlin/org/onflow/flow/evm/EVMManager.kt [168-168]
possible bug: "Potential overflow when converting ULong to Long for gasLimit."
Skipped Comments (5)
-
flow/src/commonMain/kotlin/org/onflow/flow/TransactionDSL.kt [77-78]
possible bug: "Inconsistent default values for keyIndex in proposer overloads."
-
flow/src/commonMain/kotlin/org/onflow/flow/TransactionDSL.kt [113-117]
possible issue: "Key lookup logic may fail when default keyIndex is used but no key exists at index 0."
-
flow/src/commonMain/kotlin/org/onflow/flow/TransactionResultExtensions.kt [21-24]
maintainability: "Function name shadows imported function."
-
flow/src/commonMain/kotlin/org/onflow/flow/CadenceTarget.kt [27-28]
possible issue: "AddressRegistry may not use the provided chainId."
-
flow/src/commonMain/kotlin/org/onflow/flow/cadence/CadenceQueries.kt [55-61]
readability: "Force unwrap after null filter could be simplified."
| proposer(proposer.base16Value) | ||
| payer(payer.base16Value) | ||
| authorizers(proposer.base16Value) | ||
| gasLimit(gasLimit.toLong().toBigInteger()) |
There was a problem hiding this comment.
Converting ULong to Long via toLong() can cause overflow for values greater than Long.MAX_VALUE. If gasLimit exceeds 9223372036854775807, this will produce incorrect negative values.
|
I noticed there are some failing tests, are these already failing on main? |
Yeah, most of the failing test case are relating with websockets. |
Closes: #???
Description
For contributor use:
masterbranchFiles changedin the Github PR explorer