Skip to content

Commit fa8522e

Browse files
fix typo: an active -> active
1 parent 9a01599 commit fa8522e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contracts/bonding/BondingManager.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ contract BondingManager is ManagerProxyTarget, IBondingManager {
923923
) private whenSystemNotPaused currentRoundInitialized autoCheckpoint(_transcoder) {
924924
uint256 currentRound = roundsManager().currentRound();
925925

926-
require(isActiveTranscoder(_transcoder), "transcoder must be an active");
926+
require(isActiveTranscoder(_transcoder), "transcoder must be active");
927927
require(
928928
transcoders[_transcoder].lastRewardRound != currentRound,
929929
"caller has already called reward for the current round"

test/unit/BondingManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5474,7 +5474,7 @@ describe("BondingManager", () => {
54745474
it("should fail if caller is not a transcoder", async () => {
54755475
await expect(
54765476
bondingManager.connect(nonTranscoder).reward()
5477-
).to.be.revertedWith("transcoder must be an active")
5477+
).to.be.revertedWith("transcoder must be active")
54785478
})
54795479

54805480
it("should fail if caller is registered but not an active transcoder yet in the current round", async () => {
@@ -5484,7 +5484,7 @@ describe("BondingManager", () => {
54845484
)
54855485
await expect(
54865486
bondingManager.connect(transcoder).reward()
5487-
).to.be.revertedWith("transcoder must be an active")
5487+
).to.be.revertedWith("transcoder must be active")
54885488
})
54895489

54905490
it("should fail if caller already called reward during the current round", async () => {

0 commit comments

Comments
 (0)