Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect address length 32 #16

Open
ilsgqy opened this issue Sep 13, 2024 · 0 comments
Open

incorrect address length 32 #16

ilsgqy opened this issue Sep 13, 2024 · 0 comments

Comments

@ilsgqy
Copy link

ilsgqy commented Sep 13, 2024

  1. I want to transfer contract , https://finder.terra.money/classic/address/terra1g6fm3yu79gv0rc8067n2nnfpf0vks6n0wpzaf4u7w48tdrmj98zsy7uu00 , using terra.go
github.com/terra-money/terra.go v1.0.1-0.20230829151609-2004617230a9
sdk:1.22.2
contractAddress := "terra1g6fm3yu79gv0rc8067n2nnfpf0vks6n0wpzaf4u7w48tdrmj98zsy7uu00"
contract, err := msg.AccAddressFromBech32(contractAddress)
if err != nil {
	t.Errorf(err.Error())
	return
}

error incorrect address length 32 , I know AccAddressFromBech32 deal address, deal contract address is errror, how to deal ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant