Skip to content

Commit

Permalink
add params size to quote
Browse files Browse the repository at this point in the history
  • Loading branch information
modship committed Oct 28, 2024
1 parent 4f102a6 commit dd35f69
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
5 changes: 3 additions & 2 deletions deferred-call-manager/assembly/internals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ export function registerCall(period: u64): void {
generateEvent('Current contract balance: ' + initBal.toString());

const maxGas = 20_000_000;
const params_size = 0;
const bookingPeriod = Context.currentPeriod() + period;
const slot = findCheapestSlot(bookingPeriod, bookingPeriod, maxGas);
const slot = findCheapestSlot(bookingPeriod, bookingPeriod, maxGas, params_size);

const cost = deferredCallQuote(slot, maxGas);
const cost = deferredCallQuote(slot, maxGas, params_size);
const callId = deferredCallRegister(
Context.callee().toString(),
'processTask',
Expand Down
23 changes: 21 additions & 2 deletions deferred-call-manager/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd35f69

Please sign in to comment.