Skip to content

Commit

Permalink
add maxCoins param for deploySC
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjah committed Oct 8, 2024
1 parent f8491cd commit ab47144
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/provider/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type CallSCParams = ReadSCParams & {
}

export type DeploySCParams = CallSCCommons & {
maxCoins?: Mas
byteCode: Uint8Array
periodToLive?: number
waitFinalExecution?: boolean
Expand Down
2 changes: 1 addition & 1 deletion src/provider/web3Provider/smartContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class SCProvider {
return execute(this.client, this.account.privateKey, DEPLOYER_BYTECODE, {
fee,
periodToLive: params.periodToLive,
maxCoins: totalCost,
maxCoins: params?.maxCoins ?? totalCost,
maxGas: params.maxGas,
datastore,
})
Expand Down

1 comment on commit ab47144

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report for experimental massa-web3

St.
Category Percentage Covered / Total
🟡 Statements 63.28% 1134/1792
🔴 Branches 43.21% 191/442
🔴 Functions 46.44% 209/450
🟡 Lines 63.62% 1128/1773

Test suite run success

129 tests passing in 13 suites.

Report generated by 🧪jest coverage report action from ab47144

Please sign in to comment.