Skip to content

Commit 43d44aa

Browse files
committed
Merge branch 'feature/0.1.0' into feature/0.1.0-testnet2
* feature/0.1.0: refactor: remove Pos field from Event struct and update ProcessBlock to use Bridge.BlockPos (#5)
2 parents a0c3525 + fe5b4b2 commit 43d44aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bridgesync/processor.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ type Claim struct {
9696

9797
// Event combination of bridge and claim events
9898
type Event struct {
99-
Pos uint64
10099
Bridge *Bridge
101100
Claim *Claim
102101
}
@@ -302,7 +301,7 @@ func (p *processor) ProcessBlock(ctx context.Context, block sync.Block) error {
302301
return errors.New("failed to convert sync.Block.Event to Event")
303302
}
304303
if event.Bridge != nil {
305-
if err = p.exitTree.AddLeaf(tx, block.Num, event.Pos, types.Leaf{
304+
if err = p.exitTree.AddLeaf(tx, block.Num, event.Bridge.BlockPos, types.Leaf{
306305
Index: event.Bridge.DepositCount,
307306
Hash: event.Bridge.Hash(),
308307
}); err != nil {

0 commit comments

Comments
 (0)