Skip to content

Commit dd4ad4f

Browse files
authored
updated write end-point to have support for all types (#280)
1 parent bf0d2ae commit dd4ad4f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/server/api/contract/write/write.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ const writeRequestBodySchema = Type.Object({
2424
}),
2525
Type.Tuple([Type.String(), Type.String()]),
2626
Type.Object({}),
27+
Type.Array(Type.Any()),
28+
Type.Any(),
2729
]),
2830
),
2931
...txOverridesForWriteRequest.properties,
@@ -32,7 +34,7 @@ const writeRequestBodySchema = Type.Object({
3234
// Adding example for Swagger File
3335
writeRequestBodySchema.examples = [
3436
{
35-
function_name: "transferFrom",
37+
functionName: "transferFrom",
3638
args: [
3739
"0x1946267d81Fb8aDeeEa28e6B98bcD446c8248473",
3840
"0x3EcDBF3B911d0e9052b64850693888b008e18373",

src/worker/tasks/processTx.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ export const processTx = async () => {
225225
if (rpcRes.result) {
226226
const txHash = rpcRes.result;
227227
const txRes = await provider.getTransaction(txHash);
228-
228+
logger.worker.info(
229+
`[Transaction] [${tx.queueId}] Sent tx ${txHash}, with Nonce ${txRes.nonce}`,
230+
);
229231
return {
230232
status: TransactionStatusEnum.Submitted,
231233
queueId: tx.queueId!,

0 commit comments

Comments
 (0)