Merge remote-tracking branch 'solidity/release-v2.0.0' into oz-sol-rc3
This commit is contained in:
@ -92,6 +92,10 @@ contract('BreakInvariantBounty', function ([_, owner, researcher, anyone, nonTar
|
||||
it('no longer accepts rewards', async function () {
|
||||
await assertRevert(ethSendTransaction({ from: owner, to: this.bounty.address, value: reward }));
|
||||
});
|
||||
|
||||
it('reverts when reclaimed', async function () {
|
||||
await assertRevert(this.bounty.claim(this.target.address, { from: researcher }));
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@ -128,6 +128,12 @@ contract('SignatureBouncer', function ([_, signer, otherSigner, anyone, authoriz
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
it('does not allow msg.data shorter than SIGNATURE_SIZE', async function () {
|
||||
await assertRevert(
|
||||
this.sigBouncer.tooShortMsgData({ from: authorizedUser })
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user