forked from cerc-io/laconicd-deprecated
rpc: tx receipt don't contain events (#580)
* tx receipt don't contains events - Should convert tx hash when query transaction logs * tx index should start from 0
This commit is contained in:
@@ -370,7 +370,7 @@ func (e *EVMBackend) HeaderByHash(blockHash common.Hash) (*ethtypes.Header, erro
|
||||
// It returns an error if there's an encoding error.
|
||||
// If no logs are found for the tx hash, the error is nil.
|
||||
func (e *EVMBackend) GetTransactionLogs(txHash common.Hash) ([]*ethtypes.Log, error) {
|
||||
tx, err := e.clientCtx.Client.Tx(e.ctx, txHash.Bytes(), false)
|
||||
tx, err := e.GetTxByEthHash(txHash)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user