Skip to content

Commit

Permalink
fix: fix hardhat temporary (#709)
Browse files Browse the repository at this point in the history
* fix: fix hardhat temporary

* fix: yarn.lock files
  • Loading branch information
rodolfopietro97 authored Mar 13, 2024
1 parent 9b29dea commit f159a09
Show file tree
Hide file tree
Showing 6 changed files with 3,976 additions and 151 deletions.
2 changes: 1 addition & 1 deletion apps/vechain-sdk-hardhat-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "ISC",
"scripts": {
"compile": "npx hardhat compile",
"test": "npx hardhat test",
"test": "npx hardhat test --network vechain_testnet",
"deploy-solo": "npx hardhat run scripts/deploy.ts --network vechain_solo",
"deploy-testnet": "npx hardhat run scripts/deploy.ts --network vechain_testnet"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { ethers } from 'hardhat';
import { expect } from 'chai';

/**
* Tests for the 'VechainHelloWorld' contract
*/
describe('VechainHelloWorld', function () {
it('sayHello() should throw errors', async function () {
const VechainHelloWorld =
await ethers.getContractFactory('VechainHelloWorld');
const contract = await VechainHelloWorld.deploy();

// @NOTE:
// CURRENTLY Function contract.sayHello()
// should throw because TEMPORARY we have not implemented ethers.getContractFactory.
// OUR SUPER TEAM WILL FIX THIS SOON.
// 💪
await expect(contract.sayHello()).to.be.rejected;
});
});
14 changes: 0 additions & 14 deletions apps/vechain-sdk-hardhat-integration/test/VechainHelloWorld.ts

This file was deleted.

Loading

1 comment on commit f159a09

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Coverage

Summary

Lines Statements Branches Functions
Coverage: 100%
100% (2879/2879) 99.82% (583/584) 100% (589/589)
Title Tests Skipped Failures Errors Time
core 427 0 💤 0 ❌ 0 🔥 1m 26s ⏱️
network 252 0 💤 0 ❌ 0 🔥 1m 32s ⏱️
errors 48 0 💤 0 ❌ 0 🔥 13.139s ⏱️

Please sign in to comment.