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
c877074e
Commit
c877074e
authored
Aug 19, 2020
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixErrorMessage
parent
235b0847
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
contractDropdown.js
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
+1
-1
blockchain.js
apps/remix-ide/src/blockchain/blockchain.js
+2
-2
No files found.
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
View file @
c877074e
...
@@ -251,7 +251,7 @@ class ContractDropdownUI {
...
@@ -251,7 +251,7 @@ class ContractDropdownUI {
try
{
try
{
contractMetadata
=
await
this
.
runView
.
call
(
'compilerMetadata'
,
'deployMetadataOf'
,
selectedContract
.
name
)
contractMetadata
=
await
this
.
runView
.
call
(
'compilerMetadata'
,
'deployMetadataOf'
,
selectedContract
.
name
)
}
catch
(
error
)
{
}
catch
(
error
)
{
return
statusCb
(
`creation of
${
selectedContract
.
name
}
errored: `
+
error
)
return
statusCb
(
`creation of
${
selectedContract
.
name
}
errored: `
+
(
error
.
message
?
error
.
message
:
error
)
)
}
}
const
compilerContracts
=
this
.
dropdownLogic
.
getCompilerContracts
()
const
compilerContracts
=
this
.
dropdownLogic
.
getCompilerContracts
()
...
...
apps/remix-ide/src/blockchain/blockchain.js
View file @
c877074e
...
@@ -104,7 +104,7 @@ class Blockchain {
...
@@ -104,7 +104,7 @@ class Blockchain {
const
{
continueCb
,
promptCb
,
statusCb
,
finalCb
}
=
callbacks
const
{
continueCb
,
promptCb
,
statusCb
,
finalCb
}
=
callbacks
const
constructor
=
selectedContract
.
getConstructorInterface
()
const
constructor
=
selectedContract
.
getConstructorInterface
()
txFormat
.
encodeConstructorCallAndLinkLibraries
(
selectedContract
.
object
,
args
,
constructor
,
contractMetadata
.
linkReferences
,
selectedContract
.
bytecodeLinkReferences
,
(
error
,
data
)
=>
{
txFormat
.
encodeConstructorCallAndLinkLibraries
(
selectedContract
.
object
,
args
,
constructor
,
contractMetadata
.
linkReferences
,
selectedContract
.
bytecodeLinkReferences
,
(
error
,
data
)
=>
{
if
(
error
)
return
statusCb
(
`creation of
${
selectedContract
.
name
}
errored: `
+
error
)
if
(
error
)
return
statusCb
(
`creation of
${
selectedContract
.
name
}
errored: `
+
(
error
.
message
?
error
.
message
:
error
)
)
statusCb
(
`creation of
${
selectedContract
.
name
}
pending...`
)
statusCb
(
`creation of
${
selectedContract
.
name
}
pending...`
)
this
.
createContract
(
selectedContract
,
data
,
continueCb
,
promptCb
,
confirmationCb
,
finalCb
)
this
.
createContract
(
selectedContract
,
data
,
continueCb
,
promptCb
,
confirmationCb
,
finalCb
)
...
@@ -121,7 +121,7 @@ class Blockchain {
...
@@ -121,7 +121,7 @@ class Blockchain {
this
.
runTx
({
data
:
data
,
useCall
:
false
},
confirmationCb
,
continueCb
,
promptCb
,
this
.
runTx
({
data
:
data
,
useCall
:
false
},
confirmationCb
,
continueCb
,
promptCb
,
(
error
,
txResult
,
address
)
=>
{
(
error
,
txResult
,
address
)
=>
{
if
(
error
)
{
if
(
error
)
{
return
finalCb
(
`creation of
${
selectedContract
.
name
}
errored:
${
error
}
`
)
return
finalCb
(
`creation of
${
selectedContract
.
name
}
errored:
${
(
error
.
message
?
error
.
message
:
error
)
}
`
)
}
}
if
(
txResult
.
result
.
status
&&
txResult
.
result
.
status
===
'0x0'
)
{
if
(
txResult
.
result
.
status
&&
txResult
.
result
.
status
===
'0x0'
)
{
return
finalCb
(
`creation of
${
selectedContract
.
name
}
errored: transaction execution failed`
)
return
finalCb
(
`creation of
${
selectedContract
.
name
}
errored: transaction execution failed`
)
...
...
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