Skip to content

refactor: implement structured error codes for signer rejections#236

Open
0xkuzeydurden wants to merge 1 commit intobase:masterfrom
0xkuzeydurden:patch-1
Open

refactor: implement structured error codes for signer rejections#236
0xkuzeydurden wants to merge 1 commit intobase:masterfrom
0xkuzeydurden:patch-1

Conversation

@0xkuzeydurden
Copy link

This PR introduces structured error handling in BaseAccountProvider to address unclear feedback during signer failures. By intercepting EIP-1193 code 4001, the SDK now returns a programmatically accessible user_rejected code, enabling better UI/UX handling for developers.

Closes #213

Summary

How did you test your changes?

This PR introduces structured error handling in BaseAccountProvider to address unclear feedback during signer failures. By intercepting EIP-1193 code 4001, the SDK now returns a programmatically accessible user_rejected code, enabling better UI/UX handling for developers.

Closes base#213
@cb-heimdall
Copy link
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Account SDK does not return detailed errors when signer fails to sign transactions

2 participants