Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Commit

Permalink
Two fixes. Keep eosio on schedule for last part..
Browse files Browse the repository at this point in the history
Fixup the b1 case again (dupe!)
  • Loading branch information
abourget committed May 26, 2018
1 parent 7701ed9 commit 77ff321
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions bios/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"reflect"
"strings"

"github.com/eoscanada/eos-bios/bios/unregd"
eos "github.com/eoscanada/eos-go"
Expand Down Expand Up @@ -395,12 +394,7 @@ func (op *OpSnapshotTransfer) Actions(b *BIOS) (out []*eos.Action, err error) {
}

for idx, hodler := range snapshotData {
destAccount := AN(strings.Replace(hodler.AccountName, "0", "genesis", -1)[:12])

if hodler.EthereumAddress == "0x00000000000000000000000000000000000000b1" {
// the undelegatebw action does special unvesting for the b1 account
destAccount = "b1" // TODO: CONTRACT SHOULD CHANGE TOO
}
destAccount := AN(hodler.AccountName)

memo := "Welcome " + hodler.EthereumAddress[len(hodler.EthereumAddress)-6:]
out = append(out, token.NewTransfer(AN("eosio"), destAccount, hodler.Balance, memo), nil)
Expand Down Expand Up @@ -474,7 +468,7 @@ func (op *OpSetProds) Actions(b *BIOS) (out []*eos.Action, err error) {
// and resigns the system accounts.
prodkeys := []system.ProducerKey{system.ProducerKey{
ProducerName: AN("eosio"),
BlockSigningKey: b.EphemeralPrivateKey.PublicKey(),
BlockSigningKey: b.EphemeralPublicKey,
}}

//prodkeys := []system.ProducerKey{}
Expand Down

0 comments on commit 77ff321

Please sign in to comment.