Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit 0992ba3

Browse files
author
deck
committed
Correctly provide weight over the asset received. This will be more useful information to the users.
1 parent 065e865 commit 0992ba3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

contracts/eosio.system/include/eosio.system/powerup.results.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class [[eosio::contract("powup.results")]] powup_results : eosio::contract {
2727
* @param powup_cpu - amount of powup CPU tokens
2828
*/
2929
[[eosio::action]]
30-
void powupresult( const asset& fee, const asset& powup_net, const asset& powup_cpu );
30+
void powupresult( const asset& fee, const int64_t powup_net, const int64_t powup_cpu );
3131

3232
using powupresult_action = action_wrapper<"powupresult"_n, &powup_results::powupresult>;
3333
};

contracts/eosio.system/src/powerup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ void system_contract::powerup(const name& payer, const name& receiver, uint32_t
392392

393393
// inline noop action
394394
powup_results::powupresult_action powupresult_act{ reserv_account, std::vector<eosio::permission_level>{ } };
395-
powupresult_act.send( fee, asset{ net_amount, core_symbol }, asset{ cpu_amount, core_symbol } );
395+
powupresult_act.send( fee, net_amount, cpu_amount );
396396
}
397397

398398
} // namespace eosiosystem
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <eosio.system/powerup.results.hpp>
22

3-
void powup_results::powupresult( const asset& fee, const asset& powup_net, const asset& powup_cpu ) { }
3+
void powup_results::powupresult( const asset& fee, const int64_t powup_net_weight, const int64_t powup_cpu_weight ) { }
44

55
extern "C" void apply( uint64_t, uint64_t, uint64_t ) { }

0 commit comments

Comments
 (0)