Skip to content

Commit

Permalink
Merge pull request #809 from persistenceOne/puneet/ls-proxyaddr
Browse files Browse the repository at this point in the history
chore: add comments and test for the stkxprt address check.
  • Loading branch information
puneet2019 authored Apr 9, 2024
2 parents 4528a2f + 4f33f58 commit 682887e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions x/liquidstake/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ var (
//
// Important: derive this address using module.Address to obtain a 32-byte version distinguishable for LSM
// authtypes.NewModuleAddress returns 20-byte addresses.
// persistence19zwggtdgaspa9tje6mxdap9xjpc4rayf3nd6dt5g3lwkx4y7z6dqmj3hnc
LiquidStakeProxyAcc = sdk.AccAddress(address.Module(ModuleName, []byte("-LiquidStakeProxyAcc")))

// DummyFeeAccountAcc is a dummy fee collection account that should be replaced via params.
Expand Down
2 changes: 2 additions & 0 deletions x/liquidstake/types/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import (
)

func TestParams(t *testing.T) {
require.Equal(t, "persistence19zwggtdgaspa9tje6mxdap9xjpc4rayf3nd6dt5g3lwkx4y7z6dqmj3hnc", types.LiquidStakeProxyAcc.String())

params := types.DefaultParams()

paramsStr := `{
Expand Down

0 comments on commit 682887e

Please sign in to comment.