Skip to content

Commit

Permalink
Revert "Remove unnecessary constants from KernelConstants"
Browse files Browse the repository at this point in the history
This reverts commit e81b0db.
  • Loading branch information
sohkai committed Jul 16, 2018
1 parent 8fd5a46 commit 470c776
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/kernel/KernelStorage.sol
Expand Up @@ -16,10 +16,10 @@ contract KernelConstants {
bytes32 constant public CORE_NAMESPACE = 0xc681a85306374a5ab27f0bbc385296a54bcd314a1948b6cf61c4ea1bc44bb9f8;
bytes32 constant public APP_BASES_NAMESPACE = 0xf1f3eb40f5bc1ad1344716ced8b8a0431d840b5783aea1fd01786bc26f35ac0f;
bytes32 constant public APP_ADDR_NAMESPACE = 0xd6f028ca0e8edb4a8c9757ca4fdccab25fa1e0317da1188108f7d2dee14902fb;

bytes32 constant public ETH_NODE = 0x93cdeb708b7545dc668eb9280176169d1c33cfd8ed6f04690a0bcc88a93fc4ae;
bytes32 constant public APM_NODE = 0x9065c3e7f7b7ef1ef4e53d2d0b8e0cef02874ab020c1ece79d5f0d3d0111c0ba;
bytes32 constant public KERNEL_APP_ID = 0x3b4bf6bf3ad5000ecf0f989d5befde585c6860fea3e574a4fab4c49d1c177d9c;
bytes32 constant public KERNEL_APP = 0x2b7d19d0575c228f8d9326801e14149d284dc5bb7b1541c5ad712ae4b2fcaadb;

bytes32 constant public ACL_APP_ID = 0xe3262375f45a6e2026b7e7b18c2b807434f2508fe1a2a3dfb493c7df8f4aad6a;
bytes32 constant public ACL_APP = 0x4b8e03a458a6ccec5d9077c2490964c1333dd3c72e2db408d7d9a7a36ef5c41a;

Expand Down
2 changes: 2 additions & 0 deletions test/keccak_constants.js
Expand Up @@ -14,6 +14,8 @@ contract('Constants', accounts => {
it('checks kernel constants', async () => {
const kernelConstants = await getContract('KernelConstants').new()

assert.equal(await kernelConstants.ETH_NODE(), await keccakConstants.ETH_NODE(), "ETH node doesn't match")
assert.equal(await kernelConstants.APM_NODE(), await keccakConstants.APM_NODE(), "APM node doesn't match")
assert.equal(await kernelConstants.CORE_NAMESPACE(), await keccakConstants.CORE_NAMESPACE(), "core namespace doesn't match")
assert.equal(await kernelConstants.APP_BASES_NAMESPACE(), await keccakConstants.APP_BASES_NAMESPACE(), "base namespace doesn't match")
assert.equal(await kernelConstants.APP_ADDR_NAMESPACE(), await keccakConstants.APP_ADDR_NAMESPACE(), "app namespace doesn't match")
Expand Down

0 comments on commit 470c776

Please sign in to comment.