add bid claim weth 2 eth support
This commit is contained in:
@@ -13,6 +13,7 @@ export const numberWithCommas = x => x.toString().replace(/\B(?=(\d{3})+(?!\d))/
|
||||
|
||||
export async function logGas(funcCall: any, params: any, desc: string) {
|
||||
const estimatedGas = await funcCall.estimateGas(params)
|
||||
|
||||
const receipt = await funcCall.send(params)
|
||||
const gasUsed = receipt.gasUsed;
|
||||
let colorFn;
|
||||
@@ -27,4 +28,4 @@ export async function logGas(funcCall: any, params: any, desc: string) {
|
||||
|
||||
console.log(("Gas estimated:" + numberWithCommas(estimatedGas)).padEnd(60, '.'), blueText(desc) + " ", colorFn(numberWithCommas(gasUsed).padStart(5)));
|
||||
return receipt
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user