mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
Minor error fixing.
This commit is contained in:
parent
24267ca5c2
commit
3e8147a26d
|
@ -16,11 +16,7 @@ contract ProxyTest {
|
||||||
|
|
||||||
function transferETH(address dest, uint amount) public payable {
|
function transferETH(address dest, uint amount) public payable {
|
||||||
dest.transfer(amount);
|
dest.transfer(amount);
|
||||||
|
emit LogTransferETH(dest, amount);
|
||||||
emit LogTransferETH(
|
|
||||||
dest,
|
|
||||||
amount
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function transferERC20(address tokenAddr, address dest, address amount) public {
|
function transferERC20(address tokenAddr, address dest, address amount) public {
|
||||||
|
|
|
@ -64,7 +64,14 @@ contract UserAuth {
|
||||||
|
|
||||||
|
|
||||||
contract UserNote {
|
contract UserNote {
|
||||||
event LogNote(bytes4 indexed sig, address indexed guy, bytes32 indexed foo, bytes32 indexed bar, uint wad, bytes fax);
|
event LogNote(
|
||||||
|
bytes4 indexed sig,
|
||||||
|
address indexed guy,
|
||||||
|
bytes32 indexed foo,
|
||||||
|
bytes32 bar,
|
||||||
|
uint wad,
|
||||||
|
bytes fax
|
||||||
|
);
|
||||||
|
|
||||||
modifier note {
|
modifier note {
|
||||||
bytes32 foo;
|
bytes32 foo;
|
||||||
|
@ -102,11 +109,6 @@ contract UserLogic {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// UserProxy
|
|
||||||
// Allows code execution using a persistant identity This can be very
|
|
||||||
// useful to execute a sequence of atomic actions. Since the owner of
|
|
||||||
// the proxy can be changed, this allows for dynamic ownership models
|
|
||||||
// i.e. a multisig
|
|
||||||
contract UserProxy is UserAuth, UserNote, UserLogic {
|
contract UserProxy is UserAuth, UserNote, UserLogic {
|
||||||
constructor(address logicProxyAddr_, uint activePeriod_) public {
|
constructor(address logicProxyAddr_, uint activePeriod_) public {
|
||||||
logicProxyAddr = logicProxyAddr_;
|
logicProxyAddr = logicProxyAddr_;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user