Skip to content

Commit

Permalink
Merge pull request #24 from vmware-samples/lup/VB-846
Browse files Browse the repository at this point in the history
VB-846 Contracts are being removed or being added to a version
  • Loading branch information
MRHarrison authored May 21, 2019
2 parents 8f69d13 + cd04571 commit 9803ea0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion supply-chain/verify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ npm run verify_contracts:vmware
Or deploy and verify the contracts at the same time

```shell
npm run verify_and_deploy:vmware
npm run deploy_and_verify:vmware
```
6 changes: 6 additions & 0 deletions supply-chain/verify/flatten.sh
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# !/bin/bash
if [ ! -d truffle-flattener ];then
mkdir truffle-flattener
fi

truffle-flattener contracts/OrdersV1.sol > truffle-flattener/OrdersV1Flattened.sol
truffle-flattener contracts/OrdersProxy.sol > truffle-flattener/OrdersProxyFlattened.sol
7 changes: 4 additions & 3 deletions supply-chain/verify/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

const fs = require("fs");
const https = require("https");
const timestamp = new Date().getTime();

verifyMigrations();
verifyOrdersV1();
Expand Down Expand Up @@ -46,7 +47,7 @@ function verifyMigrations() {
const address = jsonContent.networks[5000].address;

const data = JSON.stringify({
"contract_id": "Migrations",
"contract_id": `Migrations-${timestamp}`,
"compiler_version": "v0.4.25+commit.59dbf8f1",
"sourcecode": sourcecode,
"contract_name": "Migrations",
Expand All @@ -65,7 +66,7 @@ function verifyOrdersV1() {
const address = jsonContent.networks[5000].address;

const data = JSON.stringify({
"contract_id": "OrdersV1",
"contract_id": `OrdersV1-${timestamp}`,
"compiler_version": "v0.4.25+commit.59dbf8f1",
"sourcecode": sourcecode,
"contract_name": "OrdersV1",
Expand All @@ -84,7 +85,7 @@ function verifyOrdersProxy() {
const address = jsonContent.networks[5000].address;

const data = JSON.stringify({
"contract_id": "OrdersProxy",
"contract_id": `OrdersProxy-${timestamp}`,
"compiler_version": "v0.4.25+commit.59dbf8f1",
"sourcecode": sourcecode,
"contract_name": "OrdersProxy",
Expand Down

0 comments on commit 9803ea0

Please sign in to comment.