Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
88bee890
Commit
88bee890
authored
May 10, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting
parent
521ab4af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
txExecution.ts
libs/remix-lib/src/execution/txExecution.ts
+3
-3
txHelper.ts
libs/remix-lib/src/execution/txHelper.ts
+0
-1
No files found.
libs/remix-lib/src/execution/txExecution.ts
View file @
88bee890
...
@@ -98,7 +98,7 @@ export function checkVMError (txResult, abi) {
...
@@ -98,7 +98,7 @@ export function checkVMError (txResult, abi) {
// ethers doesn't crash anymore if "error" type is specified, but it doesn't extract the errors. see:
// ethers doesn't crash anymore if "error" type is specified, but it doesn't extract the errors. see:
// https://github.com/ethers-io/ethers.js/commit/bd05aed070ac9e1421a3e2bff2ceea150bedf9b7
// https://github.com/ethers-io/ethers.js/commit/bd05aed070ac9e1421a3e2bff2ceea150bedf9b7
// we need here to fake the type, so the "getSighash" function works properly
// we need here to fake the type, so the "getSighash" function works properly
const
fn
=
getFunctionFragment
({
...
item
,
type
:
'function'
,
stateMutability
:
"nonpayable"
})
const
fn
=
getFunctionFragment
({
...
item
,
type
:
'function'
,
stateMutability
:
'nonpayable'
})
if
(
!
fn
)
continue
if
(
!
fn
)
continue
const
sign
=
fn
.
getSighash
(
item
.
name
)
const
sign
=
fn
.
getSighash
(
item
.
name
)
if
(
!
sign
)
continue
if
(
!
sign
)
continue
...
@@ -110,9 +110,9 @@ export function checkVMError (txResult, abi) {
...
@@ -110,9 +110,9 @@ export function checkVMError (txResult, abi) {
}
}
}
}
if
(
decodedCustomErrorInputs
)
{
if
(
decodedCustomErrorInputs
)
{
msg
=
`\tThe transaction has been reverted to the initial state.\nError provided by the contract:`
msg
=
'
\
tThe transaction has been reverted to the initial state.
\
nError provided by the contract:'
msg
+=
`\n
${
customError
}
`
msg
+=
`\n
${
customError
}
`
msg
+=
`\nParameters:`
msg
+=
'
\
nParameters:'
msg
+=
`\n
${
decodedCustomErrorInputs
}
`
msg
+=
`\n
${
decodedCustomErrorInputs
}
`
}
}
}
}
...
...
libs/remix-lib/src/execution/txHelper.ts
View file @
88bee890
...
@@ -123,7 +123,6 @@ export function getFromInterface (abi, fnName, type) {
...
@@ -123,7 +123,6 @@ export function getFromInterface (abi, fnName, type) {
return
null
return
null
}
}
export
function
getFunction
(
abi
,
fnName
)
{
export
function
getFunction
(
abi
,
fnName
)
{
return
getFromInterface
(
abi
,
fnName
,
'function'
)
return
getFromInterface
(
abi
,
fnName
,
'function'
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment