Skip to content

Commit

Permalink
fix egs
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed Jun 19, 2024
1 parent 1c2d264 commit 066e049
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ jobs:
cache-dependency-path: package-lock.json
node-version: 21.x
- run: npm ci
- run: npm run build
- run: npm run check
- run: npm run test
3 changes: 1 addition & 2 deletions examples/e2e.eg.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { equal } from "node:assert"
import { AccountUpdate, Mina, PrivateKey, UInt64, UInt8 } from "o1js"
import { FungibleToken, FungibleTokenAdmin } from "../index.js"
import { TestPublicKeys } from "../test_util.js"

const localChain = await Mina.LocalBlockchain({
proofsEnabled: false,
Expand All @@ -11,7 +10,7 @@ Mina.setActiveInstance(localChain)

const fee = 1e8

const [deployer, owner, alexa, billy] = localChain.testAccounts as TestPublicKeys
const [deployer, owner, alexa, billy] = Mina.TestPublicKey.random(4)
const contract = PrivateKey.randomKeypair()
const admin = PrivateKey.randomKeypair()

Expand Down
3 changes: 1 addition & 2 deletions examples/escrow.eg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
UInt64,
UInt8,
} from "o1js"
import { TestPublicKeys } from "test_util.js"
import { FungibleToken, FungibleTokenAdmin } from "../index.js"

export class TokenEscrow extends SmartContract {
Expand Down Expand Up @@ -54,7 +53,7 @@ Mina.setActiveInstance(localChain)

const fee = 1e8

const [deployer, owner, alexa, billy, jackie] = localChain.testAccounts as TestPublicKeys
const [deployer, owner, alexa, billy, jackie] = Mina.TestPublicKey.random(5)
const tokenContract = PrivateKey.randomKeypair()
const escrowContract = PrivateKey.randomKeypair()
const admin = PrivateKey.randomKeypair()
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"scripts": {
"task": "node --enable-source-maps --no-warnings= --loader ts-node/esm",
"test": "npm run task -- --test FungibleToken.test.ts",
"build": "tsc"
"build": "tsc",
"check": "tsc --noEmit"
},
"peerDependencies": {
"o1js": "^1.1.0"
Expand Down

0 comments on commit 066e049

Please sign in to comment.