aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-08-25 00:24:33 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-08-25 04:19:07 +0800
commit681ed822eca91085300e85e136ddcf4abd90495c (patch)
tree67989fab45845665ee29dadd79a7a0986d721617 /packages/contracts/src
parent0a1ae2c31139e446b2fb3b7f03caf371c6668ae2 (diff)
downloaddexon-0x-contracts-681ed822eca91085300e85e136ddcf4abd90495c.tar
dexon-0x-contracts-681ed822eca91085300e85e136ddcf4abd90495c.tar.gz
dexon-0x-contracts-681ed822eca91085300e85e136ddcf4abd90495c.tar.bz2
dexon-0x-contracts-681ed822eca91085300e85e136ddcf4abd90495c.tar.lz
dexon-0x-contracts-681ed822eca91085300e85e136ddcf4abd90495c.tar.xz
dexon-0x-contracts-681ed822eca91085300e85e136ddcf4abd90495c.tar.zst
dexon-0x-contracts-681ed822eca91085300e85e136ddcf4abd90495c.zip
Revert if undefined function called in AssetProxies
Diffstat (limited to 'packages/contracts/src')
-rw-r--r--packages/contracts/src/2.0.0/protocol/AssetProxy/ERC20Proxy.sol3
-rw-r--r--packages/contracts/src/2.0.0/protocol/AssetProxy/ERC721Proxy.sol3
2 files changed, 6 insertions, 0 deletions
diff --git a/packages/contracts/src/2.0.0/protocol/AssetProxy/ERC20Proxy.sol b/packages/contracts/src/2.0.0/protocol/AssetProxy/ERC20Proxy.sol
index b5cec6b64..004c3892d 100644
--- a/packages/contracts/src/2.0.0/protocol/AssetProxy/ERC20Proxy.sol
+++ b/packages/contracts/src/2.0.0/protocol/AssetProxy/ERC20Proxy.sol
@@ -118,6 +118,9 @@ contract ERC20Proxy is
mstore(96, 0)
revert(0, 100)
}
+
+ // Revert if undefined function is called
+ revert(0, 0)
}
}
diff --git a/packages/contracts/src/2.0.0/protocol/AssetProxy/ERC721Proxy.sol b/packages/contracts/src/2.0.0/protocol/AssetProxy/ERC721Proxy.sol
index 6a70c9f60..9d0bc0f74 100644
--- a/packages/contracts/src/2.0.0/protocol/AssetProxy/ERC721Proxy.sol
+++ b/packages/contracts/src/2.0.0/protocol/AssetProxy/ERC721Proxy.sol
@@ -152,6 +152,9 @@ contract ERC721Proxy is
mstore(96, 0)
revert(0, 100)
}
+
+ // Revert if undefined function is called
+ revert(0, 0)
}
}