Skip to content

Commit

Permalink
Reduce ShowData log param
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqiushi committed Dec 29, 2023
1 parent dd82d93 commit e1eeac7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/public_data_storage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ contract PublicDataStorage {
event SponsorChanged(bytes32 mixedHash, address oldSponsor, address newSponsor);
event SupplierReward(address supplier, bytes32 mixedHash, uint256 amount);
event SupplierPubished(address supplier, bytes32 mixedHash, uint256 amount);
event ShowDataProof(address supplier, bytes32 dataMixedHash, uint256 nonce_block_high, uint32 index_m, bytes32 proof_result);
event ShowDataProof(address supplier, bytes32 dataMixedHash);
event WithdrawAward(bytes32 mixedHash, address user, uint256 amount);

constructor(address _gwtToken, address _Foundation) {
Expand Down Expand Up @@ -404,7 +404,7 @@ contract PublicDataStorage {
}
}

emit ShowDataProof(msg.sender, dataMixedHash, nonce_block, index, publicDataInfo.proof_result);
emit ShowDataProof(msg.sender, dataMixedHash);

CycleInfo storage cycleInfo = cycle_infos[_cycleNumber()];
CycleDataInfo storage dataInfo = cycleInfo.data_infos[dataMixedHash];
Expand Down
3 changes: 2 additions & 1 deletion scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ async function main() {
let listLibrary = await (await ethers.getContractFactory("SortedScoreList")).deploy();
let proofLibrary = await (await ethers.getContractFactory("PublicDataProof")).deploy();

let foundationAddress = (await ethers.getSigners())[19].address;

const publicDataStorage = await (await ethers.deployContract("PublicDataStorage", [gwtAddress], {libraries: {
const publicDataStorage = await (await ethers.deployContract("PublicDataStorage", [gwtAddress, foundationAddress], {libraries: {
"SortedScoreList": await listLibrary.getAddress(),
"PublicDataProof": await proofLibrary.getAddress()
}})).waitForDeployment();
Expand Down

0 comments on commit e1eeac7

Please sign in to comment.