diff --git a/packages/providers/src/json-rpc-provider.ts b/packages/providers/src/json-rpc-provider.ts index 3b577552f9..33eb6f2b81 100644 --- a/packages/providers/src/json-rpc-provider.ts +++ b/packages/providers/src/json-rpc-provider.ts @@ -123,7 +123,8 @@ export class JsonRpcProvider extends Provider { */ async sendTransactionAsync(signedTransaction: SignedTransaction): Promise { const bytes = encodeTransaction(signedTransaction); - return this.sendJsonRpc('broadcast_tx_async', [Buffer.from(bytes).toString('base64')]); + const buffer = [Buffer.from(bytes).toString('base64')]; + return this.sendJsonRpc('broadcast_tx_async', buffer); } /**