Skip to content

Commit

Permalink
Merge pull request #67 from near/example-refactoring
Browse files Browse the repository at this point in the history
Example simplified
  • Loading branch information
ailisp authored Jun 1, 2022
2 parents 0317916 + 95e2fa1 commit 2416eab
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 2,899 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
run: cd examples/fungible-token && yarn && yarn build && yarn test && rm -rf node_modules && rm -rf build && cd ../..
- name: lockable-fungible-token
run: cd examples/lockable-fungible-token && yarn && yarn build && yarn test && rm -rf node_modules && rm -rf build && cd ../..
- name: build test-token-receiver
run: cd examples/non-fungible-token/test-token-receiver && yarn && yarn build && rm -rf node_modules && cd ../../..
- name: non-fungible-token
run: cd examples/non-fungible-token && yarn && yarn build && yarn test && rm -rf node_modules && rm -rf build && cd ../..
- name: status-message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test.beforeEach(async t => {

// Deploy token receiver contract
const tokenReceiverContract = await root.createSubAccount('token-receiver');
let tokenReceiverContractBase64 = (await readFile('test-token-receiver/build/contract.base64')).toString();
let tokenReceiverContractBase64 = (await readFile('build/test-token-receiver.base64')).toString();
await tokenReceiverContract.call(jsvm, 'deploy_js_contract', Buffer.from(tokenReceiverContractBase64, 'base64'), { attachedDeposit: '400000000000000000000000' });
await tokenReceiverContract.call(jsvm, 'call_js_contract', encodeCall(tokenReceiverContract.accountId, 'init', [nftContract.accountId]), { attachedDeposit: '400000000000000000000000' });

Expand Down
Loading

0 comments on commit 2416eab

Please sign in to comment.