Skip to content

Instantly share code, notes, and snippets.

View patitonar's full-sized avatar

Gerardo Nardelli patitonar

View GitHub Profile
@patitonar
patitonar / ForeignBridgeNativeToErcFromv1toV220.sol
Last active February 7, 2019 19:00
Update POA Bridge from v1 to v2.2.0
pragma solidity 0.4.24;
// File: contracts/ERC677Receiver.sol
contract ERC677Receiver {
function onTokenTransfer(address _from, uint _value, bytes _data) external returns(bool);
}
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
@patitonar
patitonar / JavascriptPrototypeExample.js
Created November 22, 2018 00:15
An example of how javascript prototype works
// Create a Person function
function Person(first, last) {
this.firstName = first;
this.lastName = last;
}
// Function Person and Person.prototype are created
typeof Person // "function"
typeof Person.prototype // "object"