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

is_contract revisited #368

Merged
merged 3 commits into from
Dec 1, 2021
Merged

is_contract revisited #368

merged 3 commits into from
Dec 1, 2021

Conversation

maurolacy
Copy link
Contributor

@maurolacy maurolacy commented Nov 30, 2021

Closes #367.

@maurolacy maurolacy marked this pull request as ready for review November 30, 2021 15:37
Copy link

@ueco-jb ueco-jb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment on lines +1211 to +1215
SystemResult::Ok(ContractResult::Err(contract_err))
if contract_err.contains("not found") =>
{
Ok(false)
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to normalise this on wasmd side.
See CosmWasm/wasmd#687

But this is a great work-around for the current state

Copy link
Contributor

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Notes to make a few follow-up issues for the remaining FIXMEs

Comment on lines +1211 to +1215
SystemResult::Ok(ContractResult::Err(contract_err))
if contract_err.contains("not found") =>
{
Ok(false)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to normalise this on wasmd side.
See CosmWasm/wasmd#687

But this is a great work-around for the current state

@maurolacy maurolacy merged commit 0fa69bd into main Dec 1, 2021
@maurolacy maurolacy deleted the 213-is_contract-revisited branch December 1, 2021 12:38
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

Successfully merging this pull request may close these issues.

Revisit check an address is a contract
3 participants