We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After creating a pool then withdrawing all the tokens, when trying to add more tokens the chain halts
runtime error: index out of range [0] with length 0
make install
liquidityd init testing --chain-id testing
liquidityd keys add validator --keyring-backend test
liquidityd add-genesis-account $(liquidityd keys show validator --keyring-backend test -a) 1000000000stake,1000000000token
liquidityd gentx validator --chain-id testing --keyring-backend test
liquidityd collect-gentxs
liquidityd start > liquidityd.log 2>&1 &
sleep 10
liquidityd tx liquidity create-pool 1 100000000stake,100000000token --from validator --keyring-backend test --chain-id testing -y
liquidityd tx liquidity deposit 1 100000000stake,100000000token --from validator --keyring-backend test --chain-id testing -y
liquidityd tx liquidity withdraw 1 2000000cosmos1hdkmddemx6ttqdugxh2aqy6qjsw6lwu40pvmdv --from validator --chain-id testing --keyring-backend test -y
⬇️ this contains the log after running the commands ⬇️
failDepositWithNoFundsInPool.log
cat failDepositWithNoFundsInPool.log | grep CONSENSUS to see the error without noise 👍
cat failDepositWithNoFundsInPool.log | grep CONSENSUS
The text was updated successfully, but these errors were encountered:
I fixed it in this PR, thank you for writing a detailed issue!
Sorry, something went wrong.
No problem at all, happy to help
Great job fixing this issue so quickly 😄
dongsam
No branches or pull requests
Description
After creating a pool then withdrawing all the tokens, when trying to add more tokens the chain halts
Error
runtime error: index out of range [0] with length 0
How to reproduce
Compiling
make install
Initializing chain
liquidityd init testing --chain-id testing
liquidityd keys add validator --keyring-backend test
liquidityd add-genesis-account $(liquidityd keys show validator --keyring-backend test -a) 1000000000stake,1000000000token
liquidityd gentx validator --chain-id testing --keyring-backend test
liquidityd collect-gentxs
liquidityd start > liquidityd.log 2>&1 &
sleep 10
Creating pool
liquidityd tx liquidity create-pool 1 100000000stake,100000000token --from validator --keyring-backend test --chain-id testing -y
Deposit
liquidityd tx liquidity deposit 1 100000000stake,100000000token --from validator --keyring-backend test --chain-id testing -y
Withdraw
liquidityd tx liquidity withdraw 1 2000000cosmos1hdkmddemx6ttqdugxh2aqy6qjsw6lwu40pvmdv --from validator --chain-id testing --keyring-backend test -y
Deposit command that fails
liquidityd tx liquidity deposit 1 100000000stake,100000000token --from validator --keyring-backend test --chain-id testing -y
Log
⬇️ this contains the log after running the commands ⬇️
failDepositWithNoFundsInPool.log
cat failDepositWithNoFundsInPool.log | grep CONSENSUS
to see the error without noise 👍The text was updated successfully, but these errors were encountered: