From 6b6e694afc21867fe604aa7b94155dd075a376e3 Mon Sep 17 00:00:00 2001 From: Anton Perkov Date: Fri, 25 May 2018 10:59:48 -0400 Subject: [PATCH] buyram: don't charge fee to eosio account #3414 --- contracts/eosio.system/delegate_bandwidth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/eosio.system/delegate_bandwidth.cpp b/contracts/eosio.system/delegate_bandwidth.cpp index e945b5924..681f533a1 100644 --- a/contracts/eosio.system/delegate_bandwidth.cpp +++ b/contracts/eosio.system/delegate_bandwidth.cpp @@ -117,7 +117,7 @@ namespace eosiosystem { { payer, N(eosio.ram), quant_after_fee, std::string("buy ram") } ); } - if( fee.amount > 0 ) { + if( payer != N(eosio) && fee.amount > 0 ) { INLINE_ACTION_SENDER(eosio::token, transfer)( N(eosio.token), {payer,N(active)}, { payer, N(eosio.ramfee), fee, std::string("ram fee") } ); } -- GitLab