Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
80df9944
Commit
80df9944
authored
Dec 24, 2021
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up shell
parent
79096e00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
dockerRelayerTest.sh
plugin/dapp/cross2eth/cmd/build/dockerRelayerTest.sh
+2
-3
No files found.
plugin/dapp/cross2eth/cmd/build/dockerRelayerTest.sh
View file @
80df9944
...
@@ -121,7 +121,7 @@ function TestETH2Chain33Assets_proxy() {
...
@@ -121,7 +121,7 @@ function TestETH2Chain33Assets_proxy() {
echo
-e
"
${
IYellow
}
ethValidatorAddrp ethereum 代理地址 withdraw 后金额
${
NOC
}
"
echo
-e
"
${
IYellow
}
ethValidatorAddrp ethereum 代理地址 withdraw 后金额
${
NOC
}
"
result
=
$(${
CLIP
}
ethereum balance
-o
"
${
ethValidatorAddrp
}
"
| jq
-r
".balance"
)
result
=
$(${
CLIP
}
ethereum balance
-o
"
${
ethValidatorAddrp
}
"
| jq
-r
".balance"
)
if
[[
$(
echo
"
${
ethPBalancebf
}
-
${
lockAmount1
}
+1 <
$result
"
| bc
)
]]
;
then
if
[[
$(
echo
"
${
ethPBalancebf
}
-
${
lockAmount1
}
+1 <
$result
"
| bc
)
==
1
]]
;
then
echo
-e
"
${
RED
}
error
$ethPBalanceEnd
小于
$result
, 应该大于
$ethPBalanceEnd
扣了一点点手续费
${
NOC
}
"
echo
-e
"
${
RED
}
error
$ethPBalanceEnd
小于
$result
, 应该大于
$ethPBalanceEnd
扣了一点点手续费
${
NOC
}
"
exit
1
exit
1
fi
fi
...
@@ -292,8 +292,7 @@ function TestETH2Chain33USDT_proxy() {
...
@@ -292,8 +292,7 @@ function TestETH2Chain33USDT_proxy() {
echo
-e
"
${
IYellow
}
ethTestAddr2 ethereum withdraw 接收地址 withdraw 后金额
${
NOC
}
"
echo
-e
"
${
IYellow
}
ethTestAddr2 ethereum withdraw 接收地址 withdraw 后金额
${
NOC
}
"
result
=
$(${
CLIP
}
ethereum balance
-o
"
${
ethReceiverAddr1
}
"
-t
"
${
ethereumUSDTERC20TokenAddr
}
"
| jq
-r
".balance"
)
result
=
$(${
CLIP
}
ethereum balance
-o
"
${
ethReceiverAddr1
}
"
-t
"
${
ethereumUSDTERC20TokenAddr
}
"
| jq
-r
".balance"
)
# shellcheck disable=SC2219
ethT2BalanceEnd
=
$(
echo
"
${
ethT2Balancebf
}
+
${
lockAmount1
}
-1"
| bc
)
let
ethT2BalanceEnd
=
ethT2Balancebf+lockAmount1-1
is_equal
"
${
result
}
"
"
${
ethT2BalanceEnd
}
"
is_equal
"
${
result
}
"
"
${
ethT2BalanceEnd
}
"
echo
-e
"
${
IYellow
}
ethValidatorAddrp ethereum 代理地址 withdraw 后金额
${
NOC
}
"
echo
-e
"
${
IYellow
}
ethValidatorAddrp ethereum 代理地址 withdraw 后金额
${
NOC
}
"
...
...
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