Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/LibClone.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import {SystemContractsCaller} from "era-contracts/system-contracts/libraries/SystemContractsCaller.sol";

/// @dev Library for deploying clones of contracts on ZKsync
/// ZKsync only requires a specfic bytecode to be deployed once and stores the hash of the bytecode.
/// ZKsync only requires a specific bytecode to be deployed once and stores the hash of the bytecode.
/// This allows us to deploy the same bytecode extremely cheaply without needing to use minimal proxies.
/// @author Abstract (https://github.com/Abstract-Foundation/absmate/blob/main/src/utils/LibClone.sol)
library LibClone {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/LibEVM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.0;
import {ACCOUNT_CODE_STORAGE_SYSTEM_CONTRACT} from "era-contracts/system-contracts/Constants.sol";
import {Utils} from "era-contracts/system-contracts/libraries/Utils.sol";

/// @notice Library for detecting EVM comaptibility of addresses
/// @notice Library for detecting EVM compatibility of addresses
/// @author Abstract (https://github.com/Abstract-Foundation/absmate/blob/main/src/utils/LibEVM.sol)
library LibEVM {
/// @dev returns true if the address is EVM compatible. Empty addresses are assumed to be EOAs
Expand Down
2 changes: 1 addition & 1 deletion src/utils/vrng/Errors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.0;
/// @dev VRNG Consumer is not initialized - must be initialized before requesting randomness
error VRNGConsumer__NotInitialized();

/// @dev VRNG request has not been made - request ID must be recieved before a fulfullment callback
/// @dev VRNG request has not been made - request ID must be received before a fulfillment callback
/// can be processed
error VRNGConsumer__InvalidFulfillment();

Expand Down
2 changes: 1 addition & 1 deletion src/utils/vrng/VRNGConsumer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {VRNGConsumerAdvanced} from "./VRNGConsumerAdvanced.sol";
import {VRNGNormalizationMethod} from "./DataTypes.sol";

/// @title VRNGConsumer
/// @author Abstract (https://github.com/Abstract-Foundation/absmate/blob/main/src/utils/VRNGConsumer.sol)
/// @author Abstract (https://github.com/Abstract-Foundation/absmate/blob/main/src/utils/vrng/VRNGConsumer.sol)
/// @notice A simple consumer contract for requesting randomness from Proof of Play vRNG. (https://docs.proofofplay.com/services/vrng/about)
/// @dev Must initialize via `_setVRNG` function before requesting randomness.
abstract contract VRNGConsumer is VRNGConsumerAdvanced {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/vrng/VRNGConsumerAdvanced.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "./DataTypes.sol";
import "./Errors.sol";

/// @title VRNGConsumerAdvanced
/// @author Abstract (https://github.com/Abstract-Foundation/absmate/blob/main/src/utils/VRNGConsumerAdvanced.sol)
/// @author Abstract (https://github.com/Abstract-Foundation/absmate/blob/main/src/utils/vrng/VRNGConsumerAdvanced.sol)
/// @notice A consumer contract for requesting randomness from Proof of Play vRNG. (https://docs.proofofplay.com/services/vrng/about)
/// @dev Allows configuration of the randomness normalization method to one of three presets.
/// Must initialize via `_setVRNG` function before requesting randomness.
Expand Down
4 changes: 2 additions & 2 deletions test/vrng/VRNGConsumerTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ contract VRNGConsumerTest is TestBase {
assertEq(vrngSystem.nextRequestId(), 2);
}

function testFuzz_fullfillRandomRequestNotFromVrngSystemReverts(address sender, uint256 randomNumber) public {
function testFuzz_fulfillRandomRequestNotFromVrngSystemReverts(address sender, uint256 randomNumber) public {
vm.assume(sender != address(vrngSystem));
vrngConsumer.triggerRandomNumberRequest();

Expand All @@ -59,7 +59,7 @@ contract VRNGConsumerTest is TestBase {
vrngConsumer.randomNumberCallback(0, randomNumber);
}

function testFuzz_fullfillRandomRequestNotRequestedReverts(uint256 requestId, uint256 randomNumber) public {
function testFuzz_fulfillRandomRequestNotRequestedReverts(uint256 requestId, uint256 randomNumber) public {
vm.prank(address(vrngSystem));
vm.expectRevert(VRNGConsumer__InvalidFulfillment.selector);
vrngConsumer.randomNumberCallback(requestId, randomNumber);
Expand Down