/delecatecallTest

使用delecatecall()调用其他合约的方法,并在前台通过assembly的log得到调用结果值

Primary LanguageJavaScript

delecateCallTest

Using delecatecall() to call functions in other contracts and get its return value ps. Only Dispather.sol and Upgrade.sol are used in run.js.

Installation

npm install

Run

node run.js

Usage

run.js will compile and deploy Register.sol to http://localhost:8545 automatically if it wasn't deployed before, then call Dispatcher.sol's add() and get its return value.