We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// SPDX-License-Identifier: MIT pragma solidity ^0.8;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract TestINT is ERC20 { constructor(uint256 initialSupply) ERC20("TestINT", "TINT") { _mint(msg.sender, initialSupply * (10 ** uint256(decimals()))); } }
The text was updated successfully, but these errors were encountered:
contract TestUSDT is ERC20 { constructor(uint256 initialSupply) ERC20("testUSDT", "TUSDT") { _mint(msg.sender, initialSupply * 10 ** uint256(decimals())); } }
Sorry, something went wrong.
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract tokenSwapper{ IERC20 public testINT; IERC20 public testUSDT;
constructor(IERC20 _testINT, IERC20 _testUSDT) { testINT=IERC20(_testINT); testUSDT=IERC20(_testUSDT); } function swap(uint amount) external{ require(amount > 0, "Amount must be greater than zero"); require(testINT.transferFrom(msg.sender, address(this), amount), "TransferFrom failed"); require(testUSDT.transfer(msg.sender, amount), "Transfer failed"); }
}
No branches or pull requests
// SPDX-License-Identifier: MIT
pragma solidity ^0.8;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract TestINT is ERC20 {
constructor(uint256 initialSupply) ERC20("TestINT", "TINT") {
_mint(msg.sender, initialSupply * (10 ** uint256(decimals())));
}
}
The text was updated successfully, but these errors were encountered: