core: differentiate receipt concensus and storage decoding
This commit is contained in:
@ -70,7 +70,7 @@ func TestPutReceipt(t *testing.T) {
|
||||
hash[0] = 2
|
||||
|
||||
receipt := new(types.Receipt)
|
||||
receipt.SetLogs(vm.Logs{&vm.Log{
|
||||
receipt.Logs = vm.Logs{&vm.Log{
|
||||
Address: addr,
|
||||
Topics: []common.Hash{hash},
|
||||
Data: []byte("hi"),
|
||||
@ -79,7 +79,7 @@ func TestPutReceipt(t *testing.T) {
|
||||
TxIndex: 0,
|
||||
BlockHash: hash,
|
||||
Index: 0,
|
||||
}})
|
||||
}}
|
||||
|
||||
PutReceipts(db, types.Receipts{receipt})
|
||||
receipt = GetReceipt(db, common.Hash{})
|
||||
|
Reference in New Issue
Block a user