This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
contract SimpleLineOfCredit { | |
/// @notice - positions ids of all open credit lines. | |
/// @dev - may contain null elements | |
bytes32[] public ids; | |
/// @notice id -> position data | |
mapping(bytes32 => Credit) public credits; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.17; | |
contract gettersandsetters { | |
// Declare variables | |
uint256 public myUint; | |
int public myInt; | |
string public myString; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
import "./Auction.sol"; | |
contract Attacker{ | |
Auction auction; | |
constructor(Auction _auctionaddr){ | |
auction = Auction(_auctionaddr); | |
} |