mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
1a1a19da7d
* deleted transfer_output added asset type and transaction result to core * removed writing 0x00 when buffer length is 0 * Refactored emit into VM package + moved tx to own package. * implemented transaction along with claimTransaction. * refactored naming of transaction + added decode address for uint160 types * removed unnecessary folder and files. * transaction/smartcontract logic * bumped version 0.24.0
22 lines
418 B
Go
22 lines
418 B
Go
package util
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestUint160FromToAddress(t *testing.T) {
|
|
addrs := []string{
|
|
"AMLr1CpPQtbEdiJdriX1HpRNMZUwbU2Huj",
|
|
"AKtwd3DRXj3nL5kHMUoNsdnsCEVjnuuTFF",
|
|
"AMxkaxFVG8Q1BhnB4fjTA5ZmUTEnnTMJMa",
|
|
}
|
|
for _, addr := range addrs {
|
|
val, err := Uint160DecodeAddress(addr)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
assert.Equal(t, addr, val.Address())
|
|
}
|
|
}
|