From 18b6fd591ac6f7e80c1603fdab8ab8e2d64fe1d0 Mon Sep 17 00:00:00 2001 From: carlosescom Date: Sat, 1 Feb 2020 22:37:50 -0600 Subject: [PATCH] TDD: calling SAN_FRANCISCO_49ERS_bettors() should return 4: AssertionError: expected 4 to be an instance of BN or string --- contracts/SportsBook.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contracts/SportsBook.sol b/contracts/SportsBook.sol index bca1ab5..5e87575 100644 --- a/contracts/SportsBook.sol +++ b/contracts/SportsBook.sol @@ -134,6 +134,8 @@ contract SportsBook is WhitelistAdminRole, ReentrancyGuard { ? SAN_FRANCISCO_49ERS_pool = SAN_FRANCISCO_49ERS_pool.add(betAmount) : KANSAS_CITY_CHIEFS_pool = KANSAS_CITY_CHIEFS_pool.add(betAmount); totalPool = totalPool.add(betAmount); + SAN_FRANCISCO_49ERS_bettors++; + KANSAS_CITY_CHIEFS_bettors++; deposit(msg.sender,betAmount); } }