@@ -74,7 +74,7 @@ func (bh *BalanceHandler) AfterBalanceChange(ctx sdk.Context, stateDB *statedb.S
7474 return fmt .Errorf ("failed to parse amount from event %q: %w" , banktypes .EventTypeCoinSpent , err )
7575 }
7676
77- stateDB .SubBalance (common .BytesToAddress (spenderAddr .Bytes ()), amount , tracing .BalanceChangeUnspecified )
77+ stateDB .SubBalance (common .BytesToAddress (spenderAddr .Bytes ()), amount , tracing .BalanceChangeTransfer )
7878
7979 case banktypes .EventTypeCoinReceived :
8080 receiverAddr , err := ParseAddress (event , banktypes .AttributeKeyReceiver )
@@ -91,7 +91,7 @@ func (bh *BalanceHandler) AfterBalanceChange(ctx sdk.Context, stateDB *statedb.S
9191 return fmt .Errorf ("failed to parse amount from event %q: %w" , banktypes .EventTypeCoinReceived , err )
9292 }
9393
94- stateDB .AddBalance (common .BytesToAddress (receiverAddr .Bytes ()), amount , tracing .BalanceChangeUnspecified )
94+ stateDB .AddBalance (common .BytesToAddress (receiverAddr .Bytes ()), amount , tracing .BalanceChangeTransfer )
9595
9696 case precisebanktypes .EventTypeFractionalBalanceChange :
9797 addr , err := ParseAddress (event , precisebanktypes .AttributeKeyAddress )
@@ -114,9 +114,9 @@ func (bh *BalanceHandler) AfterBalanceChange(ctx sdk.Context, stateDB *statedb.S
114114 }
115115
116116 if delta .Sign () == 1 {
117- stateDB .AddBalance (common .BytesToAddress (addr .Bytes ()), deltaAbs , tracing .BalanceChangeUnspecified )
117+ stateDB .AddBalance (common .BytesToAddress (addr .Bytes ()), deltaAbs , tracing .BalanceChangeTransfer )
118118 } else if delta .Sign () == - 1 {
119- stateDB .SubBalance (common .BytesToAddress (addr .Bytes ()), deltaAbs , tracing .BalanceChangeUnspecified )
119+ stateDB .SubBalance (common .BytesToAddress (addr .Bytes ()), deltaAbs , tracing .BalanceChangeTransfer )
120120 }
121121
122122 default :
0 commit comments