Skip to content

Commit

Permalink
Merge branch 'feat/profile' into test/feat/profile
Browse files Browse the repository at this point in the history
  • Loading branch information
nxqbao committed Nov 9, 2023
2 parents c654c44 + b2b29a5 commit f694b44
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const config: HardhatUserConfig = {
// and we want all generated code to be deterministic
// https://docs.soliditylang.org/en/v0.8.17/metadata.html
bytecodeHash: 'none',
useLiteralContent: true,
},
},
},
Expand All @@ -148,9 +149,9 @@ const config: HardhatUserConfig = {
},
namedAccounts: {
deployer: 0,
governor: 0,
// governor: 0,
// governor: '0x00000000000000000000000000000000deadbeef',
// governor: 'privatekey://0x00000000000000000000000000000000deadbeef000000000000000000sample',
governor: 'privatekey://0xe3c1c8220c4ee4a6532d633296c3301db5397cff8a89a920da28f8bec97fcfb6',
// governor: 'trezor://0x0000000000000000000000000000000000000000',
},
networks: {
Expand Down
5 changes: 4 additions & 1 deletion test/hardhat_test/bridge/BridgeTracking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ describe('Bridge Tracking test', () => {
stakingContract.interface.encodeFunctionData('initializeV3', [profileAddress]),
roninValidatorSet.interface.encodeFunctionData('initializeV3', [fastFinalityTrackingAddress]),
roninValidatorSet.interface.encodeFunctionData('initializeV4', [profileAddress]),
new Profile__factory().interface.encodeFunctionData('initializeV2', [stakingContractAddress]),
new Profile__factory().interface.encodeFunctionData('initializeV2', [
stakingContractAddress,
roninTrustedOrganizationAddress,
]),
new RoninTrustedOrganization__factory().interface.encodeFunctionData('initializeV2', [profileAddress]),
]
);
Expand Down
3 changes: 2 additions & 1 deletion test/hardhat_test/staking/Staking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
ValidatorCandidateAddressSet,
} from '../helpers/address-set-types/validator-candidate-set-type';
import { generateSamplePubkey, getLastBlockTimestamp } from '../helpers/utils';
import { DEFAULT_ADDRESS } from '../../../src/utils';

let coinbase: SignerWithAddress;
let deployer: SignerWithAddress;
Expand Down Expand Up @@ -102,7 +103,7 @@ describe('Staking test', () => {
.connect(proxyAdmin)
.functionDelegateCall(logicContract.interface.encodeFunctionData('initializeV3', [profileContract.address]));

await profileContract.initializeV2(stakingContractAddr);
await profileContract.initializeV2(stakingContractAddr, DEFAULT_ADDRESS);

stakingContract = Staking__factory.connect(stakingProxyContract.address, deployer);
expect(validatorContractAddr.toLowerCase()).eq(
Expand Down

0 comments on commit f694b44

Please sign in to comment.