Skip to content

Commit ee29895

Browse files
author
Shon Feder
authored
Merge pull request #1047 from informalsystems/th/fix-ex-simpleauction
Fix `SimpleAuction` example for dashboard
2 parents dbba478 + 81c47dc commit ee29895

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ listed without any additional command line arguments.
8888
| [solidity/ERC20/erc20.qnt](./solidity/ERC20/erc20.qnt) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
8989
| [solidity/GradualPonzi/gradualPonzi.qnt](./solidity/GradualPonzi/gradualPonzi.qnt) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
9090
| [solidity/icse23-fig7/lottery.qnt](./solidity/icse23-fig7/lottery.qnt) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
91-
| [solidity/SimpleAuction/SimpleAuctionNonComposable.qnt](./solidity/SimpleAuction/SimpleAuctionNonComposable.qnt) | :white_check_mark: | :white_check_mark: | :x: | :x: |
91+
| [solidity/SimpleAuction/SimpleAuction.qnt](./solidity/SimpleAuction/SimpleAuction.qnt) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
9292
| [solidity/SimplePonzi/simplePonzi.qnt](./solidity/SimplePonzi/simplePonzi.qnt) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
9393
| [spells/basicSpells.qnt](./spells/basicSpells.qnt) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
9494
| [spells/commonSpells.qnt](./spells/commonSpells.qnt) | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |

examples/solidity/SimpleAuction/SimpleAuctionNonComposable.qnt renamed to examples/solidity/SimpleAuction/SimpleAuction.qnt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ module SimpleAuction {
8080
// No gas fees are taken into account.
8181
pure def evmSend(es: EvmState,
8282
fromAddr: Addr, toAddr: Addr, value: int): EvmState = {
83-
val bs = es.balances
83+
// FIXME(#693): type annotation below is a workaround, inferred type is too general
84+
val bs: Addr -> UInt = es.balances
8485
val fromBal = bs.get(fromAddr) - value
8586
val toBal = bs.get(toAddr) + value
8687
// compute the balances after `evmSend`

quint/cli-tests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ Temporarily disabled.
187187
<!-- !test check coin - Types & Effects-->
188188
quint typecheck ../examples/solidity/Coin/coin.qnt
189189

190-
### OK on test SimpleAuctionNonComposable.qnt
190+
### OK on test SimpleAuction.qnt
191191

192-
<!-- !test check SimpleAuctionNonComposable - Syntax/Types & Effects/Unit tests -->
193-
quint test --main=SimpleAuction ../examples/solidity/SimpleAuction/SimpleAuctionNonComposable.qnt
192+
<!-- !test check SimpleAuction - Syntax/Types & Effects/Unit tests -->
193+
quint test ../examples/solidity/SimpleAuction/SimpleAuction.qnt
194194

195195
### OK on test lottery.qnt
196196

0 commit comments

Comments
 (0)