Commit ead66115 authored by George Hotz's avatar George Hotz

wasn't building the contracts in test

parent bbcdbb02
......@@ -20,6 +20,8 @@ jobs:
run: |
npm install --global yarn
yarn install
- name: Hardhat Compile
run: npx hardhat compile
- name: Build minigeth and run default block (cache)
run: |
./run.sh
......
......@@ -24,7 +24,8 @@ type jsoncontract struct {
func GetBytecode(deployed bool) []byte {
var jj jsoncontract
mipsjson, _ := ioutil.ReadFile("../artifacts/contracts/MIPS.sol/MIPS.json")
mipsjson, err := ioutil.ReadFile("../artifacts/contracts/MIPS.sol/MIPS.json")
check(err)
json.NewDecoder(bytes.NewReader(mipsjson)).Decode(&jj)
if deployed {
return common.Hex2Bytes(jj.DeployedBytecode[2:])
......
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