Skip to content

Commit

Permalink
fix transaction intent for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Sep 13, 2023
1 parent a5a141e commit bffae4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/smartcontracts/smartContract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe("test contract", () => {
deployTransaction.setNonce(alice.account.nonce);

assert.equal(deployTransaction.getData().valueOf().toString(), "01020304@0500@0100");
assert.equal(deployTransaction.getGasLimit().valueOf(), 1000000);
assert.equal(deployTransaction.getGasLimit().valueOf(), 1077000);
assert.equal(deployTransaction.getNonce().valueOf(), 42);

// Compute & set the contract address
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ export class SmartContractTransactionIntentsFactory {
isPayable?: boolean,
isPayableBySmartContract?: boolean
}): TransactionIntent {
const isUpgradeable = options.isUpgradeable || true;
const isReadable = options.isReadable || true;
const isPayable = options.isPayable || false;
const isPayableBySmartContract = options.isPayableBySmartContract || true;
const isUpgradeable = options.isUpgradeable ?? true;
const isReadable = options.isReadable ?? true;
const isPayable = options.isPayable ?? false;
const isPayableBySmartContract = options.isPayableBySmartContract ?? true;

const args = options.args || [];

Expand Down

0 comments on commit bffae4a

Please sign in to comment.