Skip to content

Commit 6fbef3f

Browse files
committed
docs(opencode): restore PR #660 account-recovery rationale comment in grab span refactor
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 05481d2 commit 6fbef3f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

services/opencode/src/main/kotlin/com/getcode/opencode/internal/transactors/GrabBillTransactor.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ internal class GrabBillTransactor(
127127
mint = token.address
128128
).recoverCatching { error ->
129129
if (error is SubmitIntentError.Denied && error.isUnexpectedOwnerAccount) {
130+
// Safety net: PR #660 mitigates the upstream cause (getUserFlags
131+
// failure preventing account bootstrap), but if the core account
132+
// still isn't set up we recover here by triggering the normal
133+
// bootstrap path before retrying.
130134
accountController.refreshAccountState()
131135
// Retry the original non-core mint account
132136
accountController.createUserAccount(

0 commit comments

Comments
 (0)