File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed
server/routes/contract/extensions Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ export async function erc1155claimTo(fastify: FastifyInstance) {
80
80
} ) ;
81
81
const transaction = claimTo ( {
82
82
contract,
83
+ from : fromAddress as Address ,
83
84
to : receiver ,
84
85
quantity : BigInt ( quantity ) ,
85
86
tokenId : BigInt ( tokenId ) ,
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export async function erc20claimTo(fastify: FastifyInstance) {
77
77
} ) ;
78
78
const transaction = claimTo ( {
79
79
contract,
80
+ from : fromAddress as Address ,
80
81
to : recipient ,
81
82
quantity : amount ,
82
83
} ) ;
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ export async function erc721claimTo(fastify: FastifyInstance) {
76
76
} ) ;
77
77
const transaction = claimTo ( {
78
78
contract,
79
+ from : fromAddress as Address ,
79
80
to : receiver ,
80
81
quantity : BigInt ( quantity ) ,
81
82
} ) ;
Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ const _sendTransaction = async (
162
162
} catch ( e : unknown ) {
163
163
// If the transaction will revert, error.message contains the human-readable error.
164
164
const errorMessage = ( e as Error ) ?. message ?? `${ e } ` ;
165
+ job . log ( `Failed to estimate gas: ${ errorMessage } ` ) ;
165
166
return {
166
167
...queuedTransaction ,
167
168
status : "errored" ,
You can’t perform that action at this time.
0 commit comments