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
cda361b9
Commit
cda361b9
authored
Aug 26, 2021
by
yann300
Committed by
Aniket
Aug 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix error message
parent
4dc2e801
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
contractDropdown.js
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
+1
-1
blockchain.js
apps/remix-ide/src/blockchain/blockchain.js
+5
-5
No files found.
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
View file @
cda361b9
...
...
@@ -319,7 +319,7 @@ class ContractDropdownUI {
try
{
contractMetadata
=
await
this
.
runView
.
call
(
'compilerMetadata'
,
'deployMetadataOf'
,
selectedContract
.
name
,
selectedContract
.
contract
.
file
)
}
catch
(
error
)
{
return
statusCb
(
`creation of
${
selectedContract
.
name
}
errored:
`
+
(
error
.
message
?
error
.
message
:
error
)
)
return
statusCb
(
`creation of
${
selectedContract
.
name
}
errored:
${
error
.
message
?
error
.
message
:
error
}
`
)
}
const
compilerContracts
=
this
.
dropdownLogic
.
getCompilerContracts
()
...
...
apps/remix-ide/src/blockchain/blockchain.js
View file @
cda361b9
...
...
@@ -108,7 +108,7 @@ class Blockchain extends Plugin {
const
{
continueCb
,
promptCb
,
statusCb
,
finalCb
}
=
callbacks
const
constructor
=
selectedContract
.
getConstructorInterface
()
txFormat
.
buildData
(
selectedContract
.
name
,
selectedContract
.
object
,
compilerContracts
,
true
,
constructor
,
args
,
(
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...`
)
this
.
createContract
(
selectedContract
,
data
,
continueCb
,
promptCb
,
confirmationCb
,
finalCb
)
...
...
@@ -122,7 +122,7 @@ class Blockchain extends Plugin {
const
{
continueCb
,
promptCb
,
statusCb
,
finalCb
}
=
callbacks
const
constructor
=
selectedContract
.
getConstructorInterface
()
txFormat
.
encodeConstructorCallAndLinkLibraries
(
selectedContract
.
object
,
args
,
constructor
,
contractMetadata
.
linkReferences
,
selectedContract
.
bytecodeLinkReferences
,
(
error
,
data
)
=>
{
if
(
error
)
return
statusCb
(
`creation of
${
selectedContract
.
name
}
errored:
`
+
(
error
.
message
?
error
.
message
:
error
)
)
if
(
error
)
return
statusCb
(
`creation of
${
selectedContract
.
name
}
errored:
${
error
.
message
?
error
.
message
:
error
}
`
)
statusCb
(
`creation of
${
selectedContract
.
name
}
pending...`
)
this
.
createContract
(
selectedContract
,
data
,
continueCb
,
promptCb
,
confirmationCb
,
finalCb
)
...
...
@@ -139,7 +139,7 @@ class Blockchain extends Plugin {
this
.
runTx
({
data
:
data
,
useCall
:
false
},
confirmationCb
,
continueCb
,
promptCb
,
(
error
,
txResult
,
address
)
=>
{
if
(
error
)
{
return
finalCb
(
`creation of
${
selectedContract
.
name
}
errored:
${
(
error
.
message
?
error
.
message
:
error
)
}
`
)
return
finalCb
(
`creation of
${
selectedContract
.
name
}
errored:
${
error
.
message
?
error
.
message
:
error
}
`
)
}
if
(
txResult
.
receipt
.
status
===
false
||
txResult
.
receipt
.
status
===
'0x0'
)
{
return
finalCb
(
`creation of
${
selectedContract
.
name
}
errored: transaction execution failed`
)
...
...
@@ -265,7 +265,7 @@ class Blockchain extends Plugin {
// contractsDetails is used to resolve libraries
txFormat
.
buildData
(
contractName
,
contractAbi
,
{},
false
,
funABI
,
callType
,
(
error
,
data
)
=>
{
if
(
error
)
{
return
logCallback
(
`
${
logMsg
}
errored:
${
error
}
`
)
return
logCallback
(
`
${
logMsg
}
errored:
${
error
.
message
?
error
.
message
:
error
}
`
)
}
if
(
!
lookupOnly
)
{
logCallback
(
`
${
logMsg
}
pending ... `
)
...
...
@@ -282,7 +282,7 @@ class Blockchain extends Plugin {
const
useCall
=
funABI
.
stateMutability
===
'view'
||
funABI
.
stateMutability
===
'pure'
this
.
runTx
({
to
:
address
,
data
,
useCall
},
confirmationCb
,
continueCb
,
promptCb
,
(
error
,
txResult
,
_address
,
returnValue
)
=>
{
if
(
error
)
{
return
logCallback
(
`
${
logMsg
}
errored:
${
error
}
`
)
return
logCallback
(
`
${
logMsg
}
errored:
${
error
.
message
?
error
.
message
:
error
}
`
)
}
if
(
lookupOnly
)
{
outputCb
(
returnValue
)
...
...
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