Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change new params in logbuyram and logsellram to binary extensions #85

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions contracts/eosio.system/include/eosio.system/eosio.system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,8 @@ namespace eosiosystem {
* @param fee - the fee to be paid for the ram sold.
*/
[[eosio::action]]
void logbuyram( const name& payer, const name& receiver, const asset& quantity, int64_t bytes, int64_t ram_bytes, const asset& fee );
void logbuyram( const name& payer, const name& receiver, const asset& quantity, int64_t bytes, int64_t ram_bytes,
const eosio::binary_extension<asset>& fee );

/**
* Sell ram action, reduces quota by bytes and then performs an inline transfer of tokens
Expand All @@ -1228,7 +1229,8 @@ namespace eosiosystem {
* @param fee - the fee to be paid for the ram sold.
*/
[[eosio::action]]
void logsellram( const name& account, const asset& quantity, int64_t bytes, int64_t ram_bytes, const asset& fee );
void logsellram( const name& account, const asset& quantity, int64_t bytes, int64_t ram_bytes,
const eosio::binary_extension<asset>& fee );

/**
* Transfer ram action, reduces sender's quota by bytes and increase receiver's quota by bytes.
Expand Down
4 changes: 2 additions & 2 deletions contracts/eosio.system/src/delegate_bandwidth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ namespace eosiosystem {
return action_return_buyram{ payer, receiver, quant, bytes_out, ram_bytes, fee };
}

void system_contract::logbuyram( const name& payer, const name& receiver, const asset& quantity, int64_t bytes, int64_t ram_bytes, const asset& fee ) {
void system_contract::logbuyram( const name& payer, const name& receiver, const asset& quantity, int64_t bytes, int64_t ram_bytes, const eosio::binary_extension<asset>& fee ) {
require_auth( get_self() );
require_recipient(payer);
require_recipient(receiver);
Expand Down Expand Up @@ -156,7 +156,7 @@ namespace eosiosystem {
return action_return_sellram{ account, tokens_out, bytes, ram_bytes, asset(fee, core_symbol() ) };
}

void system_contract::logsellram( const name& account, const asset& quantity, int64_t bytes, int64_t ram_bytes, const asset& fee ) {
void system_contract::logsellram( const name& account, const asset& quantity, int64_t bytes, int64_t ram_bytes, const eosio::binary_extension<asset>& fee ) {
require_auth( get_self() );
require_recipient(account);
}
Expand Down
Loading