From 8d700c41803d35451df466e7340b1e59771a8ad3 Mon Sep 17 00:00:00 2001 From: Patrick Niemeyer Date: Tue, 27 Feb 2024 14:56:10 -0600 Subject: [PATCH] gai: Fix lines reordred in merge. --- gai-frontend/lib/chat.dart | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gai-frontend/lib/chat.dart b/gai-frontend/lib/chat.dart index cabafdd7a..ec56ef0de 100644 --- a/gai-frontend/lib/chat.dart +++ b/gai-frontend/lib/chat.dart @@ -75,6 +75,16 @@ class _ChatViewState extends State { // Init from user parameters (for web) void _initFromParams() { Map 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]; @@ -103,16 +113,6 @@ class _ChatViewState extends State { 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 {