@@ -257,6 +257,7 @@ class _SendViewState extends ConsumerState<SendView> {
257257 paymentData.coin? .uriScheme == coin.uriScheme) {
258258 _applyUri (paymentData);
259259 } else {
260+ _setOpReturnData (null );
260261 if (coin is Epiccash ) {
261262 content = AddressUtils ().formatEpicCashAddress (content);
262263 }
@@ -270,6 +271,7 @@ class _SendViewState extends ConsumerState<SendView> {
270271 });
271272 }
272273 } catch (e) {
274+ _setOpReturnData (null );
273275 // strip http:// and https:// if content contains @
274276 if (coin is Epiccash ) {
275277 content = AddressUtils ().formatEpicCashAddress (content);
@@ -323,6 +325,7 @@ class _SendViewState extends ConsumerState<SendView> {
323325 paymentData.coin? .uriScheme == coin.uriScheme) {
324326 _applyUri (paymentData);
325327 } else {
328+ _setOpReturnData (null );
326329 _address = qrResult.rawContent! .split ("\n " ).first.trim ();
327330 sendToController.text = _address ?? "" ;
328331
@@ -1281,6 +1284,7 @@ class _SendViewState extends ConsumerState<SendView> {
12811284 if (parsed != null ) {
12821285 _applyUri (parsed);
12831286 } else {
1287+ _setOpReturnData (null );
12841288 sendToController.text = content;
12851289 _address = content;
12861290
@@ -1812,6 +1816,7 @@ class _SendViewState extends ConsumerState<SendView> {
18121816 );
18131817 }
18141818 } else {
1819+ _setOpReturnData (null );
18151820 await _checkSparkNameAndOrSetAddress (
18161821 newValue,
18171822 setController: false ,
@@ -1861,6 +1866,9 @@ class _SendViewState extends ConsumerState<SendView> {
18611866 .text =
18621867 "" ;
18631868 _address = "" ;
1869+ _setOpReturnData (
1870+ null ,
1871+ );
18641872 _setValidAddressProviders (
18651873 _address,
18661874 );
0 commit comments