Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions smart-contracts/contracts/NilAwaitable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ contract NilAwaitable is NilBase {

struct Awaiter {
function(bool, bytes memory, bytes memory) internal callback;
uint answer_id;
bool active;
bytes context;
}
Expand Down Expand Up @@ -63,7 +62,7 @@ contract NilAwaitable is NilBase {
function(bool, bytes memory, bytes memory) internal cb
) internal {
ctrl.await_id += 1;
ctrl.awaiters[ctrl.await_id] = Awaiter({callback: cb, answer_id: ctrl.await_id, active: true, context: context});
ctrl.awaiters[ctrl.await_id] = Awaiter({callback: cb, active: true, context: context});
__Precompile__(address(Nil.ASYNC_CALL)).precompileAsyncCall{value: value}(false, Nil.FORWARD_REMAINING, dst, zeroAddress,
zeroAddress, 0, tokens, callData, ctrl.await_id, responseProcessingGas);
}
Expand Down