fbsobreira / gotron-sdk

Tron SDK for golang / CLI tool with keystore manager
GNU Lesser General Public License v3.0
322 stars 206 forks source link

mnemonic and address not sync? #98

Closed csquan closed 1 year ago

csquan commented 1 year ago

I use code
acc := account.Creation{ Name: "name1", Passphrase: "", }

if err := account.CreateNewLocalAccount(&acc); err != nil {
    return "", "", err
}
addr, _ := store.AddressFromAccountName(acc.Name)

get acc.Mnemonic and addr,but when I inport mnemonic into tp,it show address different?does it have some wrong?

fbsobreira commented 1 year ago

please check the mnemonic path, we use "44'/195'/0'/0/0" as default for first account on mnemonic... must check if tp use the same path to derive address...