Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
fix: fix the error code of unimplemented
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyr committed Nov 3, 2022
1 parent 9103172 commit 3c98e21
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions c/validator_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,11 @@ int sys_pay_fee(gw_context_t *ctx, gw_reg_addr_t payer_addr, uint32_t sudt_id,
}

int sys_snapshot(gw_context_t *ctx, uint32_t *snapshot) {
/* unsuport operation */
return GW_FATAL_INVALID_CONTEXT;
return GW_UNIMPLEMENTED;
}

int sys_revert(gw_context_t *ctx, uint32_t snapshot) {
/* unsuport operation */
return GW_FATAL_INVALID_CONTEXT;
return GW_UNIMPLEMENTED;
}

/* Find cell by type hash */
Expand Down

0 comments on commit 3c98e21

Please sign in to comment.