Skip to content

Commit

Permalink
gai: Fix lines reordred in merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
patniemeyer committed Feb 27, 2024
1 parent 0b2fda4 commit 8d700c4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions gai-frontend/lib/chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ class _ChatViewState extends State<ChatView> {
// Init from user parameters (for web)
void _initFromParams() {
Map<String, String> params = Uri.base.queryParameters;
try {
_funder = EthereumAddress.from(params['funder'] ?? '');
} catch (e) {
_funder = null;
}
try {
_signerKey = BigInt.parse(params['signer'] ?? '');
} catch (e) {
_signerKey = null;
}
String? provider = params['provider'];
if (provider != null) {
_providers = [provider];
Expand Down Expand Up @@ -103,16 +113,6 @@ class _ChatViewState extends State<ChatView> {
contract:
EthereumAddress.from('0x6dB8381b2B41b74E17F5D4eB82E8d5b04ddA0a82'),
);
try {
_funder = EthereumAddress.from(params['funder'] ?? '');
} catch (e) {
_funder = null;
}
try {
_signerKey = BigInt.parse(params['signer'] ?? '');
} catch (e) {
_signerKey = null;
}
}

void initStateAsync() async {
Expand Down

0 comments on commit 8d700c4

Please sign in to comment.