Upload ERC20 in CI

This commit is contained in:
Simon Warta 2020-02-07 16:48:46 +01:00
parent e7c121cefd
commit 7ffd9b578a
2 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,9 @@ jobs:
- run:
name: Wait for blockchain and REST server to be ready (started in background)
command: timeout 60 bash -c "until curl -s http://localhost:1317/node_info > /dev/null; do sleep 1; done"
- run:
name: Deploy ERC20 contract
command: ./scripts/cosm/deploy_erc20.js
- run:
environment:
COSMOS_ENABLED: 1

2
scripts/cosm/deploy_erc20.js Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/camelcase */
const { Encoding } = require("@iov/encoding");
const {