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

How to identify if info.sender is a contract address? #2060

Open
99Kies opened this issue Mar 18, 2024 · 1 comment
Open

How to identify if info.sender is a contract address? #2060

99Kies opened this issue Mar 18, 2024 · 1 comment
Labels
question Further information is requested

Comments

@99Kies
Copy link

99Kies commented Mar 18, 2024

No description provided.

@99Kies 99Kies changed the title How to identify if info.sender is a contract address? How to identify if info.sender is a contract address? Mar 18, 2024
@webmaster128
Copy link
Member

You can use query_wasm_contract_info/WasmQuery::ContractInfo and see if you get a valid result. However, it is usually recommended to not make a difference between various kind of sender addresses. Especially with module accounts and smart accounts on the horizon, there will be lots of different senders that you might not be aware of.

@webmaster128 webmaster128 added the question Further information is requested label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants