1234567891011121314151617181920212223242526272829303132333435363738 |
- /*global ethereum, MetamaskOnboarding */
- /*
- The `piggybankContract` is compiled from:
- pragma solidity ^0.4.0;
- contract PiggyBank {
- uint private balance;
- address public owner;
- function PiggyBank() public {
- owner = msg.sender;
- balance = 0;
- }
- function deposit() public payable returns (uint) {
- balance += msg.value;
- return balance;
- }
- function withdraw(uint withdrawAmount) public returns (uint remainingBal) {
- require(msg.sender == owner);
- balance -= withdrawAmount;
- msg.sender.transfer(withdrawAmount);
- return balance;
- }
- }
- */
- const forwarderOrigin = 'http://localhost:9010'
- const initialize = () => {
- //You will start here
- }
- window.addEventListener('DOMContentLoaded', initialize)
|