Skip to content

Commit

Permalink
uint
Browse files Browse the repository at this point in the history
  • Loading branch information
doublesharp committed Jan 21, 2024
1 parent f8b92e1 commit bc3102b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contracts/SamWitchOrderBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ contract SamWitchOrderBook is ISamWitchOrderBook, ERC1155Holder, UUPSUpgradeable

// we need to encode each of the array elements
bytes32[] memory hashedOrders = new bytes32[](_orders.length);
for (uint256 i = 0; i < _orders.length; i++) {
for (uint i = 0; i < _orders.length; i++) {
hashedOrders[i] = keccak256(
// use encode here to prevent collisions
abi.encode(LIMIT_ORDER_HASH, _orders[i].side, _orders[i].tokenId, _orders[i].price, _orders[i].quantity)
Expand Down Expand Up @@ -319,7 +319,7 @@ contract SamWitchOrderBook is ISamWitchOrderBook, ERC1155Holder, UUPSUpgradeable

// encode all of the elements of each array
bytes32[] memory hashedOrders = new bytes32[](_orders.length);
for (uint256 i = 0; i < _orders.length; i++) {
for (uint i = 0; i < _orders.length; i++) {
hashedOrders[i] = keccak256(
abi.encode(CANCEL_ORDER_INFO_HASH, _orders[i].side, _orders[i].tokenId, _orders[i].price)
);
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IBrushToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ pragma solidity ^0.8.23;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IBrushToken is IERC20 {
function burn(uint256 _amount) external;
function burn(uint _amount) external;
}
4 changes: 2 additions & 2 deletions contracts/test/MockBrushToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {IBrushToken} from "../interfaces/IBrushToken.sol";
contract MockBrushToken is ERC20("PaintSwap Token", "BRUSH"), IBrushToken {
uint public amountBurnt;

function mint(address _to, uint256 _amount) external {
function mint(address _to, uint _amount) external {
_mint(_to, _amount);
}

function burn(uint256 _amount) external {
function burn(uint _amount) external {
amountBurnt += _amount;
_burn(msg.sender, _amount);
}
Expand Down

0 comments on commit bc3102b

Please sign in to comment.