Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoubleSigningSlasher Foundry test #10839

Merged
merged 11 commits into from
Feb 1, 2024
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
pragma solidity ^0.5.13;

import "../DoubleSigningSlasher.sol";

contract MockUsingPrecompiles {
mapping(bytes32 => bytes32) verifiedSealBitmap;
mapping(uint256 => bytes32) parentSealBitmap;
Expand All @@ -27,6 +25,7 @@ contract MockUsingPrecompiles {

function calcEpoch(uint256 blockNumber) internal pure returns (uint256) {
uint256 epochSize = 100;

// Follows GetEpochNumber from celo-blockchain/blob/master/consensus/istanbul/utils.go
uint256 epochNumber = blockNumber / epochSize;
if (blockNumber % epochSize == 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/test-sol/common/GoldToken.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ contract GoldTokenTest is Test {
function setUp() public {
goldToken = new GoldToken(true);
receiver = actor("receiver");
receiver = actor("sender");
sender = actor("sender");
vm.deal(receiver, ONE_GOLDTOKEN);
vm.deal(sender, ONE_GOLDTOKEN);
}
Expand Down
Loading
Loading