...by Daniel Szego
"On a long enough timeline we will all become Satoshi Nakamoto.."
Daniel Szego

Sunday, February 11, 2018

Solidity and Truffle Tips and Tricks - function pointers

There is a possibility to use function pointers in solidity. Practically you can define a function and set a variable defining the type of the variable as var:

contract TetFunctionPointer{

  function myFunction (uint256 input){

  function testFunction(){
      var fvPointer = this.myFunction;