Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ export const useSaleContract = (saleSpecificEntityID: Hex) => {
] as const;

// TODO could also show an example of using the replaceBidWithPermit function instead of the replaceBidWithApproval function
// If this simulation intermittently reverts with "ERC20: transfer amount exceeds allowance",
// the configured RPC is load-balanced across nodes that haven't all synced the approval block
// above (the public sepolia.base.org default has this behavior). The on-chain transaction
// itself is unaffected. Set NEXT_PUBLIC_BASE_RPC_URL to a dedicated, non-load-balanced
// endpoint (see .env.example) to fix.
const { request: bidRequest } = await simulateContract(config, {
address: saleContract,
abi: settlementSaleAbi,
Expand Down
5 changes: 5 additions & 0 deletions examples/framework/react-evm/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ export const useSaleContract = (saleSpecificEntityID: Hex) => {
] as const;

// TODO could also show an example of using the replaceBidWithPermit function instead of the replaceBidWithApproval function
// If this simulation intermittently reverts with "ERC20: transfer amount exceeds allowance",
// the configured RPC is load-balanced across nodes that haven't all synced the approval block
// above (the public sepolia.base.org default has this behavior). The on-chain transaction
// itself is unaffected. Set VITE_BASE_RPC_URL to a dedicated, non-load-balanced endpoint
// (see .env.example) to fix.
const { request: bidRequest } = await simulateContract(config, {
address: saleContract,
abi: settlementSaleAbi,
Expand Down
Loading