Skip to content

Commit

Permalink
Fix the test case and clean the code
Browse files Browse the repository at this point in the history
  • Loading branch information
axiongsupra committed Jun 25, 2024
1 parent cd4102c commit 5381c59
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions aptos-move/framework/supra-framework/sources/genesis.move
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module supra_framework::genesis {
use std::vector;

use aptos_std::simple_map;
use aptos_std::debug;
use supra_framework::delegation_pool;
use supra_framework::pbo_delegation_pool;

Expand Down Expand Up @@ -492,11 +491,8 @@ module supra_framework::genesis {
let coinInitialization = coin::zero<SupraCoin>();
vector::for_each(delegator_addresses, |delegator_address| {
let delegator = &create_signer(delegator_address);
debug::print<address>(&delegator_address);
let total = coin::balance<SupraCoin>(delegator_address);
debug::print<u64>(&total);
let withdraw_amount = total * delegation_percentage / 100;
debug::print<u64>(&withdraw_amount);
let coins = coin::withdraw<SupraCoin>(delegator, withdraw_amount);
coin::merge(&mut coinInitialization, coins);
});
Expand Down Expand Up @@ -977,7 +973,6 @@ module supra_framework::genesis {
};

let owner2 = @0x121344;
create_account(supra_framework,@0x121346,0);
let validator_config_commission2 = ValidatorConfigurationWithCommission{
validator_config: ValidatorConfiguration{
owner_address: @0x121344,
Expand All @@ -998,7 +993,6 @@ module supra_framework::genesis {
let delegator_stakes2:vector<u64> = vector::empty();
while (j < vector::length(&delegator_address2)) {
let bal = vector::borrow(&initial_balance2,j);
debug::print<u64>(bal);
create_account(supra_framework, *vector::borrow(&delegator_address2, j), *bal);
vector::push_back(&mut delegator_stakes2, (*bal) * delegation_percentage / 100);
j = j + 1;
Expand Down

0 comments on commit 5381c59

Please sign in to comment.