Commit 9271d869 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Store ballot as ballot.sol

parent ff65dbd3
...@@ -178,8 +178,9 @@ function Editor (loadingFromGist, storage) { ...@@ -178,8 +178,9 @@ function Editor (loadingFromGist, storage) {
untitledCount = (untitledCount - 0) + 1; untitledCount = (untitledCount - 0) + 1;
} }
SOL_CACHE_FILE = SOL_CACHE_UNTITLED + untitledCount; SOL_CACHE_FILE = SOL_CACHE_UNTITLED + untitledCount;
files.push(SOL_CACHE_FILE);
storage.set(SOL_CACHE_FILE, examples.ballot); files.push(examples.ballot.name);
storage.set(examples.ballot.name, examples.ballot.content);
} }
SOL_CACHE_FILE = files[0]; SOL_CACHE_FILE = files[0];
......
...@@ -65,5 +65,5 @@ contract Ballot { ...@@ -65,5 +65,5 @@ contract Ballot {
}`; }`;
module.exports = { module.exports = {
ballot: ballot ballot: { name: 'ballot.sol', content: ballot }
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment