Created
May 23, 2023 12:35
-
-
Save dimiandre/bc164b4242320c3f7b2fa154219ed335 to your computer and use it in GitHub Desktop.
Find Cosmos-SDK Module Account Address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/cometbft/cometbft/crypto" | |
sdk "github.com/cosmos/cosmos-sdk/types" | |
) | |
func main() { | |
addr := sdk.AccAddress(crypto.AddressHash([]byte("fee_collector"))).String() | |
fmt.Println(addr) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment