Skip to content

Commit

Permalink
fix on cbRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed May 22, 2024
1 parent c1bac05 commit c881794
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions lib/services/coinbase_service/coinbase_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,11 @@ class CoinbaseService implements ICoinbaseService {
@protected
@override
Future<dynamic> cbRequest({
String? chainId,
required String chainId,
required SessionRequestParams request,
}) async {
await _checkInstalled();
String? cid;
if (chainId != null) {
cid = chainId.contains(':') ? chainId.split(':').last : chainId;
}
final cid = chainId.contains(':') ? chainId.split(':').last : chainId;
try {
final req = Request(actions: [request.toCoinbaseRequest(cid)]);
final result = (await CoinbaseWalletSDK.shared.makeRequest(req)).first;
Expand Down
2 changes: 1 addition & 1 deletion test/mock_classes.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ class MockW3MService extends _i1.Mock implements _i3.W3MService {
) as _i14.Future<void>);
@override
_i14.Future<dynamic> cbRequest({
String? chainId,
required String? chainId,
required _i3.SessionRequestParams? request,
}) =>
(super.noSuchMethod(
Expand Down

0 comments on commit c881794

Please sign in to comment.