You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
Trying to get the receipt of an Ethereum transaction raises a panic.
Specifically, the transaction is initiated by e2e tests trying to call the method deposit() in the bank precompile. Later, when trying to get the receipt it panics while using WaitMined or any other receipt-retrieving method.
The out of range panic suggest that the replacement we're performing in updateTx is invalid somehow:
// updateTx updates an exiting tx from events, called during parsing.
// In event format 2, we update the tx with the attributes of the second `ethereum_tx` event,
// Due to bug https://github.com/zeta-chain/ethermint/issues/1175, the first `ethereum_tx` event may emit incorrect tx hash,
// so we prefer the second event and override the first one.
func (p *ParsedTxs) updateTx(eventIndex int, attrs []abci.EventAttribute) error {
tx := NewParsedTx(eventIndex)
if err := fillTxAttributes(&tx, attrs); err != nil {
return err
}
if tx.Hash != p.Txs[eventIndex].Hash {
// if hash is different, index the new one too
p.TxHashes[tx.Hash] = eventIndex
}
Describe the Bug
Trying to get the receipt of an Ethereum transaction raises a panic.
Specifically, the transaction is initiated by e2e tests trying to call the method
deposit()
in the bank precompile. Later, when trying to get the receipt it panics while usingWaitMined
or any other receipt-retrieving method.To Reproduce
feat/bank-precompile
.cast receipt 0x6a602c7d384c40f00a6118d70221069fcc6eb151dcdff9dea86f68fba2e0327e --rpc-url=localhost:9545
The
out of range
panic suggest that the replacement we're performing in updateTx is invalid somehow:The raw
[]abci.EventAttribute
slice:The tx after
fillTxAttributes
:The text was updated successfully, but these errors were encountered: