Store ballot as ballot.sol

pull/1/head
Alex Beregszaszi 8 years ago
parent ff65dbd373
commit 9271d86968
  1. 5
      src/app/editor.js
  2. 2
      src/app/example-contracts.js

@ -178,8 +178,9 @@ function Editor (loadingFromGist, storage) {
untitledCount = (untitledCount - 0) + 1;
}
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];

@ -65,5 +65,5 @@ contract Ballot {
}`;
module.exports = {
ballot: ballot
ballot: { name: 'ballot.sol', content: ballot }
};

Loading…
Cancel
Save