address: rename functions as per #579 comments

Make them more clear to understand.
This commit is contained in:
Roman Khimov 2019-12-25 17:34:18 +03:00
parent 53e6fbbbf9
commit b246653f62
16 changed files with 28 additions and 28 deletions

View file

@ -72,7 +72,7 @@ func getWif(t *testing.B) *keys.WIF {
// getTX returns Invocation transaction with some random attributes in order to have different hashes.
func getTX(t *testing.B, wif *keys.WIF) *transaction.Transaction {
fromAddress := wif.PrivateKey.Address()
fromAddressHash, err := address.DecodeUint160(fromAddress)
fromAddressHash, err := address.StringToUint160(fromAddress)
require.NoError(t, err)
tx := &transaction.Transaction{