Skip to content

Commit e962c8a

Browse files
authored
Merge pull request #358 from kleros/test/contribute-fix-fallback
fix: missing contribute function
2 parents 884831c + 4933575 commit e962c8a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

contracts/standard/rng/BeaconRNGFallback.sol

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @authors: [@shalzz]
3-
* @reviewers: [@jaybuidl]
3+
* @reviewers: [@jaybuidl*, @geaxed]
44
* @auditors: []
55
* @bounties: []
66
* @deployments: []
@@ -27,6 +27,15 @@ contract BeaconRNGFallBack is RNG {
2727
blockhashRNG = _blockhashRNG;
2828
}
2929

30+
/**
31+
* @dev Since we don't really need to incentivize requesting the beacon chain randomness,
32+
* this is a stub implementation required for backwards compatibility with the
33+
* RNG interface.
34+
* @notice All the ETH sent here will be lost forever.
35+
* @param _block Block the random number is linked to.
36+
*/
37+
function contribute(uint _block) public payable {}
38+
3039
/**
3140
* @dev Request a random number.
3241
* @dev Since the beacon chain randomness is not related to a block

0 commit comments

Comments
 (0)