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

[Bug] Can't make store code tx with gas simulation #42

Closed
4 tasks
yun-yeo opened this issue Jan 23, 2020 · 3 comments · Fixed by #53
Closed
4 tasks

[Bug] Can't make store code tx with gas simulation #42

yun-yeo opened this issue Jan 23, 2020 · 3 comments · Fixed by #53
Assignees

Comments

@yun-yeo
Copy link

yun-yeo commented Jan 23, 2020

Summary of Bug

When we send tx with gas simulation (== --gas auto ), it will simulate the tx and then the code is created in the ~/.wasmd/wasm/. As a result, real execution of store code tx will fail with already exists error.

Version

all version

Steps to Reproduce

$ wasmcli tx store ./contract.wasm --gas auto --gas-adjustment 1.4 ~~


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@ethanfrey
Copy link
Member

That is interesting.... I never thought about simulation mode. Just check and deliver.

Good thing to fix.

@alpe alpe self-assigned this Jan 27, 2020
@alpe
Copy link
Contributor

alpe commented Jan 27, 2020

For manual tests I was using the cosmwasm/wasmd-demo docker image

cd /go/src/github.com/cosmwasm/wasmd/x/wasm/testdata
wasmcli tx wasm store ./escrow.wasm --from validator --gas auto --gas-adjustment 1.4  --chain-id=testing -y

@ethanfrey
Copy link
Member

Thanks for fixing and testing

GNaD13 pushed a commit to GNaD13/wasmd that referenced this issue Dec 19, 2024
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 a pull request may close this issue.

3 participants