Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed Jul 19, 2024
1 parent 37546cb commit 1cf6452
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
4 changes: 3 additions & 1 deletion example/wallet/lib/dependencies/web3wallet_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ class Web3WalletService extends IWeb3WalletService {
// so if you want to handle requests using onSessionRequest event then you would need to manually add that method in the approved namespaces
await _web3Wallet!.approveSession(
id: args.id,
namespaces: args.params.generatedNamespaces!,
namespaces: NamespaceUtils.regenerateNamespacesWithChains(
args.params.generatedNamespaces!,
),
sessionProperties: args.params.sessionProperties,
);
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/apis/sign_api/models/session_models.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SessionProposalCompleter {

@freezed
class Namespace with _$Namespace {
@JsonSerializable()
@JsonSerializable(includeIfNull: false)
const factory Namespace({
List<String>? chains,
required List<String> accounts,
Expand Down
2 changes: 1 addition & 1 deletion lib/apis/sign_api/models/session_models.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class __$$NamespaceImplCopyWithImpl<$Res>

/// @nodoc
@JsonSerializable()
@JsonSerializable(includeIfNull: false)
class _$NamespaceImpl implements _Namespace {
const _$NamespaceImpl(
{final List<String>? chains,
Expand Down
22 changes: 15 additions & 7 deletions lib/apis/sign_api/models/session_models.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1cf6452

Please sign in to comment.