Skip to content

Commit

Permalink
updated unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tienngovan committed Mar 8, 2024
1 parent 1640a55 commit c9c915e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/owner_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract("OwnerData", async (accounts) => {
before(async function () {
this.signer = accounts[0];
this.trustee = accounts[1];
this.ownerDataSigner = accounts[5];
this.ownerDataSigner = accounts[2];
this.vault = await FeralfileVault.new(this.signer);
this.ownerDataContract = await OwnerData.new(
this.ownerDataSigner,
Expand Down Expand Up @@ -330,7 +330,7 @@ contract("OwnerData", async (accounts) => {
);

const hash = web3.utils.keccak256(signedParams);
const trusteeSignature = await web3.eth.sign(hash, accounts[5]);
const trusteeSignature = await web3.eth.sign(hash, this.ownerDataSigner);
const sig = trusteeSignature.substr(2);
const r = "0x" + sig.slice(0, 64);
const s = "0x" + sig.slice(64, 128);
Expand Down Expand Up @@ -397,7 +397,7 @@ contract("OwnerData", async (accounts) => {
);

const hash = web3.utils.keccak256(signedParams);
const trusteeSignature = await web3.eth.sign(hash, accounts[5]);
const trusteeSignature = await web3.eth.sign(hash, this.ownerDataSigner);
const sig = trusteeSignature.substr(2);
const r = "0x" + sig.slice(0, 64);
const s = "0x" + sig.slice(64, 128);
Expand Down

0 comments on commit c9c915e

Please sign in to comment.