Skip to content

Commit

Permalink
ty3
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaSethi committed May 15, 2024
1 parent 29b4fa1 commit 6036f3f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
5 changes: 3 additions & 2 deletions test/StateReceiver.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const randomBytes = () => randomHex(randomInRange(68))
const randomProof = (height) =>
new Array(height).fill(0).map(() => randomHex(32))

const FUZZ_WEIGHT = process.env.CI == 'true' ? 256 : 50
const FUZZ_WEIGHT = process.env.CI == 'true' ? 256 : 256

contract('StateReceiver', async (accounts) => {
describe('commitState()', async () => {
Expand Down Expand Up @@ -276,6 +276,7 @@ contract('StateReceiver', async (accounts) => {
let failedStateSyncs = []

beforeEach(async function () {
this.timeout(0)
testStateReceiver = await TestStateReceiver.new(accounts[0])
await testStateReceiver.setSystemAddress(accounts[0])
testRevertingReceiver = await TestRevertingReceiver.new()
Expand Down Expand Up @@ -330,7 +331,7 @@ contract('StateReceiver', async (accounts) => {
assert.equal(failedStateSyncs.length, tree.leafCount)

toBlock = await web3.eth.getBlockNumber()
}).timeout(100000000)
})
it('only rootSetter can set root & leaf count, only once', async () => {
assert.equal(await testStateReceiver.rootSetter(), accounts[0])
await expectRevert(
Expand Down
25 changes: 14 additions & 11 deletions truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ module.exports = {
// options below to some value.
//
development: {
host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none)
host: '127.0.0.1', // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: '*', // Any network (default: none),
networkCheckTimeout: 100000000
}
// Another network with more advanced options...
// advanced: {
Expand Down Expand Up @@ -76,25 +77,27 @@ module.exports = {

// Set default mocha options here, use special reporters etc.
mocha: {
reporter: "eth-gas-reporter",
reporterOptions: {
src: "./contracts",
url: "http://localhost:8545",
},
},
reporter: 'eth-gas-reporter',
reporterOptions: {
src: './contracts',
url: 'http://localhost:8545'
},
enableTimeouts: false,
timeout: 10000000000
},

// Configure your compilers
compilers: {
solc: {
version: "0.5.17", // Fetch exact version from solc-bin (default: truffle's version)
version: '0.5.17', // Fetch exact version from solc-bin (default: truffle's version)
docker: false, // Use "0.5.1" you've installed locally with docker (default: false)
settings: {
// See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: false,
runs: 200
},
evmVersion: "byzantium"
evmVersion: 'byzantium'
}
}
}
Expand Down

0 comments on commit 6036f3f

Please sign in to comment.