Skip to content

Commit

Permalink
set gasprice on bsctestnet (#3120)
Browse files Browse the repository at this point in the history
### Description

Sets a somewhat arbitrary gas price on bsctestnet to get transactions
going for the key-funder (and presumably kathy as well). It's a pretty
blunt hammer for a not-helpful `transaction underpriced` error, but IMO
fine enough

### Drive-by changes

handleTx would not handle confirmations=0, and just set it to 1
  • Loading branch information
nambrot authored Jan 4, 2024
1 parent efc2410 commit 457473c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion typescript/infra/config/environments/testnet4/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ export const ethereumTestnetConfigs: ChainMap<ChainMetadata> = {
maxPriorityFeePerGas: 40 * 10 ** 9, // 40 gwei
},
},
bsctestnet: chainMetadata.bsctestnet,
bsctestnet: {
...chainMetadata.bsctestnet,
transactionOverrides: {
gasPrice: 80 * 10 ** 9, // 8 gwei
},
},
goerli: chainMetadata.goerli,
scrollsepolia: chainMetadata.scrollsepolia,
sepolia: chainMetadata.sepolia,
Expand Down
2 changes: 1 addition & 1 deletion typescript/sdk/src/providers/MultiProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export class MultiProvider<MetaExt = {}> extends ChainMetadataManager<MetaExt> {
tx: ContractTransaction | Promise<ContractTransaction>,
): Promise<ContractReceipt> {
const confirmations =
this.getChainMetadata(chainNameOrId).blocks?.confirmations || 1;
this.getChainMetadata(chainNameOrId).blocks?.confirmations ?? 1;
const response = await tx;
const txUrl = this.tryGetExplorerTxUrl(chainNameOrId, response);
this.logger(
Expand Down

0 comments on commit 457473c

Please sign in to comment.