mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-04 21:54:26 -08:00
enforce min & max lease period
This commit is contained in:
@@ -4,13 +4,17 @@
|
||||
HERE=$(cd $(dirname $BASH_SOURCE) && pwd)
|
||||
source $HERE/testutil.sh
|
||||
|
||||
# echo $BOB
|
||||
# cosmos-testd q cosmostest show-auction $(get_last_auction_index) | jq
|
||||
# exit 0
|
||||
cosmos-testd tx cosmostest new-auction asdf asdf 200 token $(now + 3500) \
|
||||
-y --from bob \
|
||||
| expect_fail "Can't create auction below min lease period"
|
||||
|
||||
cosmos-testd tx cosmostest new-auction asdf asdf 200 token $(now + 8200000) \
|
||||
-y --from bob \
|
||||
| expect_fail "Can't create auction above max lease period"
|
||||
|
||||
before=$(get_balance $BOB token)
|
||||
|
||||
cosmos-testd tx cosmostest new-auction asdf asdf 200 token $(now + 100) \
|
||||
cosmos-testd tx cosmostest new-auction asdf asdf 200 token $(now + 3700) \
|
||||
-y --from bob \
|
||||
| expect_success "New auction is created"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user