Skip to content

Commit

Permalink
GH-54 Remove call to set_parameters_packed as many tests assume that …
Browse files Browse the repository at this point in the history
…its protocol feature has not been activated.
  • Loading branch information
heifner committed Jan 4, 2023
1 parent 1fc40bf commit 2bf719d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions libraries/testing/contracts/eosio.bios/eosio.bios.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ void bios::setparams( const eosio::blockchain_parameters& params ) {
set_blockchain_parameters( params );
}

void bios::setpparams( const std::vector<char>& params ) {
require_auth( get_self() );
set_parameters_packed( params.data(), params.size() );
}

void bios::reqauth( name from ) {
require_auth( from );
}
Expand Down
9 changes: 0 additions & 9 deletions libraries/testing/contracts/eosio.bios/eosio.bios.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,6 @@ namespace eosiobios {
[[eosio::action]]
void setparams( const eosio::blockchain_parameters& params );

/**
* Set params action, sets the blockchain parameters. By tuning these parameters, various degrees of customization can be achieved.
*
* @param params - New blockchain parameters to set
*/
[[eosio::action]]
void setpparams( const std::vector<char>& bytes);

/**
* Require authorization action, checks if the account name `from` passed in as param has authorization to access
* current action, that is, if it is listed in the action’s allowed permissions vector.
Expand Down Expand Up @@ -283,7 +275,6 @@ namespace eosiobios {
using setalimits_action = action_wrapper<"setalimits"_n, &bios::setalimits>;
using setprods_action = action_wrapper<"setprods"_n, &bios::setprods>;
using setparams_action = action_wrapper<"setparams"_n, &bios::setparams>;
using setpparams_action = action_wrapper<"setpparams"_n, &bios::setpparams>;
using reqauth_action = action_wrapper<"reqauth"_n, &bios::reqauth>;
using activate_action = action_wrapper<"activate"_n, &bios::activate>;
using reqactivated_action = action_wrapper<"reqactivated"_n, &bios::reqactivated>;
Expand Down

0 comments on commit 2bf719d

Please sign in to comment.