Skip to content

Commit

Permalink
doc(delegation): add comment for uninit members
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMustermann2 committed Apr 3, 2024
1 parent 59f7927 commit e9f762e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/delegation/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func (k Keeper) InitGenesis(
OperatorAddress: accAddress,
StakerAddress: stakerAddressBytes.Bytes(),
OpAmount: amount,
// the uninitialized members are not used in this context
// they are the LzNonce and TxHash
}
if err := k.delegateTo(ctx, delegationParams, false); err != nil {
panic(err)
Expand Down

0 comments on commit e9f762e

Please sign in to comment.