Skip to content

Commit

Permalink
feat: use lodash assign
Browse files Browse the repository at this point in the history
  • Loading branch information
reedrosenbluth committed Feb 15, 2021
1 parent f75f250 commit 3d200e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/transactions/src/builders.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import _ from 'lodash';

import { StacksTransaction } from './transaction';

import { StacksNetwork, StacksMainnet, StacksTestnet } from '@stacks/network';
Expand Down Expand Up @@ -185,7 +187,7 @@ export async function broadcastRawTransaction(
};

if (attachment) {
options = Object.assign(options, {
options = _.assign(options, {
headers: {
'Content-Type': 'application/json',
},
Expand All @@ -195,7 +197,7 @@ export async function broadcastRawTransaction(
})
})
} else {
options = Object.assign(options, {
options = _.assign(options, {
headers: {
'Content-Type': 'application/octet-stream',
},
Expand Down

0 comments on commit 3d200e7

Please sign in to comment.