File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/ui/components/pages/swap Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ export function Swap() {
175175
176176 // errors from nested invokes
177177 let match = errMessage . match (
178- / e r r o r \s + w h i l e \s + e x e c u t i n g \s + a c c o u n t - s c r i p t : \s * \w + \( c o d e \s * = \s * (?: .+ ) , \s * e r r o r \s * = \s * ( [ \s \S ] + ) \s * , \s * l o g \s * = / im
178+ / E r r o r w h i l e e x e c u t i n g d A p p : \w + \( c o d e \s * = \s * (?: .+ ) , \s * e r r o r \s * = \s * ( [ \s \S ] + ) \s * , \s * l o g \s * = / im
179179 ) ;
180180
181181 if ( match ) {
@@ -206,9 +206,7 @@ export function Swap() {
206206 }
207207
208208 // errors from contract itself
209- match = errMessage . match (
210- / e r r o r \s + w h i l e \s + e x e c u t i n g \s + a c c o u n t - s c r i p t : \s * ( [ \s \S ] + ) / im
211- ) ;
209+ match = errMessage . match ( / E r r o r w h i l e e x e c u t i n g d A p p : ( [ \s \S ] + ) / im) ;
212210
213211 if ( match ) {
214212 const [ , msg ] = match ;
You can’t perform that action at this time.
0 commit comments