diff options
author | chriseth <chris@ethereum.org> | 2018-06-27 18:04:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-27 18:04:49 +0800 |
commit | b67dfa154cacbe173d2a54a85d73f8b9a03cc15f (patch) | |
tree | 53d6ea6851e2a2d14d23f20ddbaa993cd9312065 /test/compilationTests/gnosis/Oracles/FutarchyOracle.sol | |
parent | 503eb8caa53c1f6ef00cec1fee099b2457c304f4 (diff) | |
parent | 4e8883b63d26eb2bcfc5e1c18c8bab8236fff16b (diff) | |
download | dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar.gz dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar.bz2 dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar.lz dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar.xz dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.tar.zst dexon-solidity-b67dfa154cacbe173d2a54a85d73f8b9a03cc15f.zip |
Merge pull request #4269 from ethereum/require-emit
[BREAKING] Remove non-0.5.0 warning for emit keyword (make it mandatory)
Diffstat (limited to 'test/compilationTests/gnosis/Oracles/FutarchyOracle.sol')
-rw-r--r-- | test/compilationTests/gnosis/Oracles/FutarchyOracle.sol | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compilationTests/gnosis/Oracles/FutarchyOracle.sol b/test/compilationTests/gnosis/Oracles/FutarchyOracle.sol index 196d38c5..7105f247 100644 --- a/test/compilationTests/gnosis/Oracles/FutarchyOracle.sol +++ b/test/compilationTests/gnosis/Oracles/FutarchyOracle.sol @@ -105,7 +105,7 @@ contract FutarchyOracle is Oracle { require(market.eventContract().collateralToken().approve(market, funding)); market.fund(funding); } - FutarchyFunding(funding); + emit FutarchyFunding(funding); } /// @dev Closes market for winning outcome and redeems winnings and sends all collateral tokens to creator @@ -123,7 +123,7 @@ contract FutarchyOracle is Oracle { // Redeem collateral token for winning outcome tokens and transfer collateral tokens to creator categoricalEvent.redeemWinnings(); require(categoricalEvent.collateralToken().transfer(creator, categoricalEvent.collateralToken().balanceOf(this))); - FutarchyClosing(); + emit FutarchyClosing(); } /// @dev Allows to set the oracle outcome based on the market with largest long position @@ -144,7 +144,7 @@ contract FutarchyOracle is Oracle { } winningMarketIndex = highestIndex; isSet = true; - OutcomeAssignment(winningMarketIndex); + emit OutcomeAssignment(winningMarketIndex); } /// @dev Returns if winning outcome is set |