eth, miner: rm redundant type declare (#27713)

* eth: rm redundant type from array, slice, or map

* miner: rm redundant type from array, slice, or map
This commit is contained in:
Delweng
2023-07-13 09:55:31 +03:00
committed by GitHub
parent 040a4a543b
commit 714f75943b
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ func (b *EthAPIBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscri
}
func (b *EthAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error {
return b.eth.txPool.Add([]*txpool.Transaction{&txpool.Transaction{Tx: signedTx}}, true, false)[0]
return b.eth.txPool.Add([]*txpool.Transaction{{Tx: signedTx}}, true, false)[0]
}
func (b *EthAPIBackend) GetPoolTransactions() (types.Transactions, error) {