Skip to content
Permalink
Browse files

Fixes to non-negative message and senderId to deferred action

  • Loading branch information...
dallasjohnson committed Mar 7, 2019
1 parent f49b780 commit bef0b3d9d3c59533c2522c1917981174de5ce8b5
@@ -1,5 +1,5 @@
{
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT Thu Mar 7 01:20:57 2019",
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT Thu Mar 7 11:58:06 2019",
"version": "eosio::abi/1.1",
"structs": [
{
Binary file not shown.
@@ -1,5 +1,5 @@
{
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT Thu Mar 7 01:21:03 2019",
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT Thu Mar 7 11:58:12 2019",
"version": "eosio::abi/1.1",
"structs": [
{
Binary file not shown.
@@ -1,5 +1,5 @@
{
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT Thu Mar 7 01:21:08 2019",
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT Thu Mar 7 11:58:18 2019",
"version": "eosio::abi/1.1",
"structs": [
{
Binary file not shown.
@@ -1,5 +1,5 @@
{
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT Thu Mar 7 01:21:14 2019",
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT Thu Mar 7 11:58:24 2019",
"version": "eosio::abi/1.1",
"structs": [
{
Binary file not shown.
@@ -31,7 +31,7 @@ void daccustodian::claimpay(uint64_t payid) {
}

deferredTrans.delay_sec = TRANSFER_DELAY;
deferredTrans.send(now() + payid, _self);
deferredTrans.send(uint128_t(payid) << 64 | now(), _self);

pending_pay.erase(payClaim);
}
@@ -12,7 +12,7 @@ void daccustodian::updatereqpay(name cand, asset requestedpay) {

require_auth(cand);
assertValidMember(cand);
eosio_assert(requestedpay.amount >= 0, "ERR::UPDATEREQPAY_UNDER_ZERO::Requested pay amount must be greater than 0.");
eosio_assert(requestedpay.amount >= 0, "ERR::UPDATEREQPAY_UNDER_ZERO::Requested pay amount must not be negative.");
eosio_assert(requestedpay <= configs().requested_pay_max, "ERR::UPDATEREQPAY_EXCESS_MAX_PAY::Requested pay amount limit for a candidate was exceeded.");
const auto &reg_candidate = registered_candidates.get(cand.value, "ERR::UPDATEREQPAY_NOT_CURRENT_REG_CANDIDATE::Candidate is not already registered.");

0 comments on commit bef0b3d

Please sign in to comment.
You can’t perform that action at this time.