Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
multisend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
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
李伟@五瓣科技
multisend
Commits
308c7c4d
Commit
308c7c4d
authored
Mar 08, 2022
by
李伟@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix from addr
parent
a002f054
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
http.go
http.go
+8
-6
No files found.
http.go
View file @
308c7c4d
...
...
@@ -55,13 +55,13 @@ func GetSendRecord(id uuid.UUID) (SendRecord, bool) {
}
}
recordAsJson
,
err
:=
redisCli
.
Get
(
context
.
Background
(),
id
.
String
())
.
Result
()
//
recordAsJson, err := redisCli.Get(context.Background(), id.String()).Result()
if
err
!=
nil
{
panic
(
err
)
}
//
if err != nil {
//
panic(err)
//
}
fmt
.
Printf
(
"recordAsJson: %s
\n
"
,
recordAsJson
)
//
fmt.Printf("recordAsJson: %s \n", recordAsJson)
// sendRec := SendRecord{}
...
...
@@ -500,6 +500,8 @@ func (web *WebServicer) ProduceTxs(fromAddr string, toAddrs []string, txCount in
var
tx
*
types
.
Transaction
var
err
error
fmt
.
Printf
(
"param fromAddr: %s systemFromAddr: %s
\n
"
,
fromAddr
,
systemFromAddr
)
if
fromAddr
!=
systemFromAddr
&&
first
{
tx
,
err
=
buildOriginalTx
(
originalTxParam
.
Nonce
,
common
.
HexToAddress
(
fromAddr
),
amount
*
int64
(
txCount
),
big
.
NewInt
(
256
),
nil
)
first
=
false
...
...
@@ -532,7 +534,7 @@ func (web *WebServicer) ProduceTxs(fromAddr string, toAddrs []string, txCount in
tx
})
}
else
{
txs
=
append
(
txs
,
TxWithFrom
{
originalTxParam
.
FromAddr
[
:
]
,
common
.
HexToAddress
(
fromAddr
)
.
Bytes
()
,
tx
})
}
...
...
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