Hey, I fixed the values as mentioned however I still get the same exact error:
const createAuction = async (
multisigContract: AuctionContractAbi,
bid_asset: AssetId,
duration: BigNumberish,
initial_price: BigNumberish,
reserve_price: Option<BigNumberish>,
seller: IdentityInput,
) => {
try {
const txResponse = await multisigContract.functions
.create(
bid_asset,
duration,
initial_price,
reserve_price,
seller
)
.callParams({
forward: [10, BaseAssetId],
gasLimit: 1,
})
.txParams({
gasPrice: 1,
gasLimit: 100_000,
})
.call();
console.log('Auction created successfully', txResponse);
} catch (error) {
console.error('Failed to create auction:', error);
}
}
const handleCreateAuction = async () => {
if (!contract || !wallet) {
alert("Contract not loaded or wallet not connected");
return;
}
let bid_asset: AssetIdInput = {
value: BaseAssetId,
};
const duration: BigNumberish = 10;
const initial_price: BigNumberish = 1;
const reserve_price: BigNumberish = 10;
const seller: IdentityInput = {
Address: {
value: wallet.address.toB256(),
},
ContractId: {
value: CONTRACT_ID,
},
};
if (contract && wallet) {
await createAuction(
contract,
bid_asset,
duration,
initial_price,
reserve_price,
seller
);
}
};