I get the Only one field must be provided error when building with on top of the sway-applications. It happens when building the UI for the english-auction, when interacting with the create auction contract.
Code snippet:
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,
10,
1,
0,
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);
}
}