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
b951fbf9
Unverified
Commit
b951fbf9
authored
Aug 26, 2021
by
David Disu
Committed by
GitHub
Aug 26, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into react-plugin-manager
parents
819dbec4
39137f32
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
contractDropdown.js
apps/remix-ide/src/app/tabs/runTab/contractDropdown.js
+1
-1
confirmDialog.js
apps/remix-ide/src/app/ui/confirmDialog.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 @
b951fbf9
...
...
@@ -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/app/ui/confirmDialog.js
View file @
b951fbf9
...
...
@@ -89,7 +89,7 @@ function confirmDialog (tx, network, amount, gasEstimation, newGasPriceCb, initi
<div class="align-items-center my-1" title="Represents the part of the tx fee that goes to the miner.">
<div class='d-flex'>
<span class="text-dark mr-2 text-nowrap">Max Priority fee:</span>
<input class="form-control mr-1 text-right" style='height: 1.2rem; width: 6rem;' value="
0
" id='maxpriorityfee' />
<input class="form-control mr-1 text-right" style='height: 1.2rem; width: 6rem;' value="
1
" id='maxpriorityfee' />
<span title="visit https://ethgasstation.info for current gas price info.">Gwei</span>
</div>
</div>
...
...
apps/remix-ide/src/blockchain/blockchain.js
View file @
b951fbf9
...
...
@@ -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