Guest User

Untitled

a guest
Jun 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. // 2_simple_storage.js
  2. const fs = require('fs')
  3. const path = require('path')
  4.  
  5. var SimpleStore = artifacts.require("./SimpleStore.sol");
  6.  
  7. const unityAddresses = path.resolve(__dirname, '../../unityclient/Assets/Resources/contracts/address')
  8.  
  9. module.exports = function(deployer) {
  10. deployer.deploy(SimpleStore).then(() => {
  11. // Write the abi to a new file in the unityAbis directory
  12. fs.writeFileSync(path.resolve(unityAddresses, "SimpleStore.address"), SimpleStore.address)
  13. });
  14.  
  15. };
Add Comment
Please, Sign In to add comment