Skip to content

Commit c8311c8

Browse files
committed
update utils
1 parent 67d9924 commit c8311c8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

utils/encryptAndPlaceBid.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ async function encryptAndPlaceBid(
3636
// Get block height for bidding deadline
3737
const blockHeight = await sealedBidContract.biddingEndBlock();
3838

39+
// Encode message for encryption
3940
const msg = ethers.parseEther(bidAmount);
4041
const encoder = new SolidityEncoder()
4142
const msgBytes = encoder.encodeUint256(msg);
@@ -70,7 +71,7 @@ async function encryptAndPlaceBid(
7071
async function main() {
7172
// Change these values as needed
7273
const PRIVATE_KEY = process.env.CALIBRATION_TESTNET_PRIVATE_KEY;
73-
const CONTRACT_ADDRESS = "0x68Ded4e9670f507934fBc9D2d8f07b4F3E471EbD";
74+
const CONTRACT_ADDRESS = "0xF3bbd8D0208b3d0B43014DF3c596dFd349d09E46";
7475
const BID_AMOUNT = "4"; // Bid amount in ETH
7576

7677
// Ensure required values are provided

utils/getBid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async function getBidDetails(bidID: bigint, contractAddress: string) {
6161
async function main() {
6262
// Define bid ID and contract address
6363
const bidId: string = "131"; // Change this as needed
64-
const contractAddress: string = "0x68Ded4e9670f507934fBc9D2d8f07b4F3E471EbD"; // Change this as needed
64+
const contractAddress: string = "0xF3bbd8D0208b3d0B43014DF3c596dFd349d09E46"; // Change this as needed
6565

6666
// Convert bid ID to BigInt
6767
const bidID = BigInt(bidId);

0 commit comments

Comments
 (0)