A quick guide to deploying the Taiko smart contract:
Go to this site.
Create a new file with the extension .sol (any name).
Copy and paste the following code into the file:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract ProfitMafia{
address public owner;
mapping (address => uint) public payments;
constructor() {
owner = msg.sender;
}
function Donate() public payable {
payments[msg.sender] = msg.value;
}
function MoneyBack() public {
address payable _to = payable(owner);
address _thisContract = address(this);
_to.transfer(_thisContract.balance);
}
}
Do not pay attention to the warning, press OK
.
Press Ctrl+S.
Go to this tab, select the latest version of the compiler and click Compile
.
Injected Provider - MetaMask
and check the wallet address.Taiko (Alpha-2 Testnet)
.Click the Deploy
button and sign the transaction.
Done!