@@ -118,16 +118,16 @@ func (s *PublicTxPoolAPI) Content() map[string]map[string]map[string]*RPCTransac
118
118
// Flatten the pending transactions
119
119
for account , txs := range pending {
120
120
dump := make (map [string ]* RPCTransaction )
121
- for nonce , tx := range txs {
122
- dump [fmt .Sprintf ("%d" , nonce )] = newRPCPendingTransaction (tx )
121
+ for _ , tx := range txs {
122
+ dump [fmt .Sprintf ("%d" , tx . Nonce () )] = newRPCPendingTransaction (tx )
123
123
}
124
124
content ["pending" ][account .Hex ()] = dump
125
125
}
126
126
// Flatten the queued transactions
127
127
for account , txs := range queue {
128
128
dump := make (map [string ]* RPCTransaction )
129
- for nonce , tx := range txs {
130
- dump [fmt .Sprintf ("%d" , nonce )] = newRPCPendingTransaction (tx )
129
+ for _ , tx := range txs {
130
+ dump [fmt .Sprintf ("%d" , tx . Nonce () )] = newRPCPendingTransaction (tx )
131
131
}
132
132
content ["queued" ][account .Hex ()] = dump
133
133
}
@@ -162,16 +162,16 @@ func (s *PublicTxPoolAPI) Inspect() map[string]map[string]map[string]string {
162
162
// Flatten the pending transactions
163
163
for account , txs := range pending {
164
164
dump := make (map [string ]string )
165
- for nonce , tx := range txs {
166
- dump [fmt .Sprintf ("%d" , nonce )] = format (tx )
165
+ for _ , tx := range txs {
166
+ dump [fmt .Sprintf ("%d" , tx . Nonce () )] = format (tx )
167
167
}
168
168
content ["pending" ][account .Hex ()] = dump
169
169
}
170
170
// Flatten the queued transactions
171
171
for account , txs := range queue {
172
172
dump := make (map [string ]string )
173
- for nonce , tx := range txs {
174
- dump [fmt .Sprintf ("%d" , nonce )] = format (tx )
173
+ for _ , tx := range txs {
174
+ dump [fmt .Sprintf ("%d" , tx . Nonce () )] = format (tx )
175
175
}
176
176
content ["queued" ][account .Hex ()] = dump
177
177
}
0 commit comments