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
0b67aa95
Commit
0b67aa95
authored
May 10, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rollback uneeded refactoring
parent
7f9e48c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
txHelper.ts
libs/remix-lib/src/execution/txHelper.ts
+2
-10
No files found.
libs/remix-lib/src/execution/txHelper.ts
View file @
0b67aa95
...
...
@@ -102,14 +102,10 @@ export function extractSize (type) {
return
size
?
size
[
2
]
:
''
}
export
function
getError
(
abi
,
fnName
)
{
return
getFromInterface
(
abi
,
fnName
,
'error'
)
}
export
function
getFromInterface
(
abi
,
fnName
,
type
)
{
export
function
getFunction
(
abi
,
fnName
)
{
for
(
let
i
=
0
;
i
<
abi
.
length
;
i
++
)
{
const
fn
=
abi
[
i
]
if
(
fn
.
type
===
type
&&
fnName
===
fn
.
name
+
'('
+
fn
.
inputs
.
map
((
value
)
=>
{
if
(
fn
.
type
===
'function'
&&
fnName
===
fn
.
name
+
'('
+
fn
.
inputs
.
map
((
value
)
=>
{
if
(
value
.
components
)
{
const
fullType
=
this
.
makeFullTypeDefinition
(
value
)
return
fullType
.
replace
(
/tuple/g
,
''
)
// return of makeFullTypeDefinition might contain `tuple`, need to remove it cause `methodIdentifier` (fnName) does not include `tuple` keyword
...
...
@@ -123,10 +119,6 @@ export function getFromInterface (abi, fnName, type) {
return
null
}
export
function
getFunction
(
abi
,
fnName
)
{
return
getFromInterface
(
abi
,
fnName
,
'function'
)
}
export
function
getFallbackInterface
(
abi
)
{
for
(
let
i
=
0
;
i
<
abi
.
length
;
i
++
)
{
if
(
abi
[
i
].
type
===
'fallback'
)
{
...
...
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