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
1467b8b8
Unverified
Commit
1467b8b8
authored
Jan 31, 2020
by
yann300
Committed by
GitHub
Jan 31, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2563 from ethereum/fixLogMsgs
Fix logs message during call or transact
parents
8fe25a9a
3ead7f5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
universal-dapp-ui.js
src/app/ui/universal-dapp-ui.js
+4
-7
No files found.
src/app/ui/universal-dapp-ui.js
View file @
1467b8b8
...
@@ -211,7 +211,8 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
...
@@ -211,7 +211,8 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
UniversalDAppUI
.
prototype
.
getCallButton
=
function
(
args
)
{
UniversalDAppUI
.
prototype
.
getCallButton
=
function
(
args
)
{
let
self
=
this
let
self
=
this
var
outputOverride
=
yo
`<div class=
${
css
.
value
}
></div>`
// show return value
var
outputOverride
=
yo
`<div class=
${
css
.
value
}
></div>`
// show return value
const
lookupOnly
=
args
.
funABI
.
stateMutability
===
'view'
||
args
.
funABI
.
stateMutability
===
'pure'
||
args
.
funABI
.
constant
const
isConstant
=
args
.
funABI
.
constant
!==
undefined
?
args
.
funABI
.
constant
:
false
const
lookupOnly
=
args
.
funABI
.
stateMutability
===
'view'
||
args
.
funABI
.
stateMutability
===
'pure'
||
isConstant
const
multiParamManager
=
new
MultiParamManager
(
const
multiParamManager
=
new
MultiParamManager
(
lookupOnly
,
lookupOnly
,
args
.
funABI
,
args
.
funABI
,
...
@@ -227,12 +228,8 @@ UniversalDAppUI.prototype.getCallButton = function (args) {
...
@@ -227,12 +228,8 @@ UniversalDAppUI.prototype.getCallButton = function (args) {
UniversalDAppUI
.
prototype
.
runTransaction
=
function
(
lookupOnly
,
args
,
valArr
,
inputsValues
,
outputOverride
)
{
UniversalDAppUI
.
prototype
.
runTransaction
=
function
(
lookupOnly
,
args
,
valArr
,
inputsValues
,
outputOverride
)
{
let
self
=
this
let
self
=
this
let
logMsg
const
functionName
=
args
.
funABI
.
type
===
'function'
?
args
.
funABI
.
name
:
`(
${
args
.
funABI
.
type
}
)`
if
(
!
lookupOnly
)
{
const
logMsg
=
`
${
lookupOnly
?
'call'
:
'transact'
}
to
${
args
.
contractName
}
.
${
functionName
}
`
logMsg
=
`call to
${
args
.
contractName
}
.
${(
args
.
funABI
.
name
)
?
args
.
funABI
.
name
:
'(fallback)'
}
`
}
else
{
logMsg
=
`transact to
${
args
.
contractName
}
.
${(
args
.
funABI
.
name
)
?
args
.
funABI
.
name
:
'(fallback)'
}
`
}
var
value
=
inputsValues
var
value
=
inputsValues
...
...
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