You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The executeTx method now passes an additional parameter (isUIWallet) to SuiBlocks.execCall, but we don't see the implementation of SuiBlocks.execCall to verify it properly handles this new parameter.
The wallet parameter type has changed from IAddressable to ISigner, but the Pick<Signer, "signPersonalMessage"> part remains. Verify that this combination works correctly with UI wallets.
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here.
PR Code Suggestions ✨
Explore these optional code suggestions:
Category
Suggestion
Impact
General
Add deprecation notice
The getAddress() method in BluefinRequestSigner now calls toSuiAddress() instead of the old getAddress(), but this could cause confusion since the method names don't match. Consider renaming the method to toSuiAddress() for consistency or adding a deprecation notice.
+/**+ * Get the wallet's address+ * @deprecated Consider using toSuiAddress() for consistency with the ISigner interface+ */
getAddress(): string {
return this.wallet.toSuiAddress();
}
Apply this suggestion
Suggestion importance[1-10]: 7
__
Why: The suggestion adds a deprecation notice to the getAddress() method, which is important for API consistency since the underlying implementation now uses toSuiAddress(). This helps prevent confusion and guides developers toward using the preferred method.
Medium
Add clarifying comment
The makeSigner function is called with only two arguments, but the second parameter isUIWallet is not clearly documented in the example. Consider adding a comment to explain what this boolean parameter represents for better code clarity.
+// false indicates this is not a UI wallet (e.g., browser extension)
const bfSigner = new BluefinRequestSigner(makeSigner(suiWallet, false));
Apply this suggestion
Suggestion importance[1-10]: 5
__
Why: The suggestion adds a helpful comment that clarifies the purpose of the boolean parameter in the makeSigner function, which improves code readability and helps future developers understand the API usage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
The Bluefin Signer class does not cater to UI wallet, updated it.
PR Type
Enhancement, Bug fix
Description
Updated
BluefinRequestSignerto support UI wallets.Replaced
makeAddressableKeyPairwithmakeSignerfor wallet handling.Fixed naming inconsistencies in deauthorize account request functions.
Added
isUIWalletmethod to determine wallet type.Changes walkthrough 📝
example.ts
Update example to use `makeSigner` for wallet handlingts/sdk/example.ts
makeAddressableKeyPairwithmakeSignerfor wallet handling.BluefinRequestSignerinstantiation to include UI walletsupport.
request-signer.ts
Enhance `BluefinRequestSigner` and wallet handling logicts/sdk/src/request-signer.ts
IAddressablewithISignerinterface for wallet handling.isUIWalletmethod toISignerandBluefinRequestSigner.UIDeauthorizeAccountRequesttoUIDeAuthorizeAccountRequest.executeTxto handle UI wallet type.sdk.ts
Minor formatting updates in SDK optionsts/sdk/src/sdk.ts
BluefinProSdkOptions.