Skip to content

Commit

Permalink
set initializer for options param in apolloDashboard methods to preve…
Browse files Browse the repository at this point in the history
…nt passing undefined to contract call
  • Loading branch information
kishkoigor committed Oct 26, 2023
1 parent 89c9d4e commit 1e796bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@airdao/airdao-node-contracts",
"version": "1.2.3",
"version": "1.2.4",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/methods/apolloDashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function serverNodesNewStake(
nodeAddress: string,
rewardAddress: string,
amount: BigNumberish,
options?: object
options: object = {},
) {
const serverNodes = contracts.getContractByName(ContractNames.ServerNodesManager) as ServerNodes_Manager;
return serverNodes.newStake(nodeAddress, rewardAddress, { value: amount, ...options });
Expand Down

0 comments on commit 1e796bc

Please sign in to comment.