mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-03 23:19:44 +00:00
ddd1d92ff1
The idea here is to preserve the history of `dev` branch development and its code when merging with the `master`. Later this code could be moved into the masters code where appropriate.
17 lines
385 B
Go
17 lines
385 B
Go
package address
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestScriptHash(t *testing.T) {
|
|
address := "AJeAEsmeD6t279Dx4n2HWdUvUmmXQ4iJvP"
|
|
|
|
hash := ToScriptHash(address)
|
|
reverseHash := ToReverseScriptHash(address)
|
|
|
|
assert.Equal(t, "b28427088a3729b2536d10122960394e8be6721f", reverseHash)
|
|
assert.Equal(t, "1f72e68b4e39602912106d53b229378a082784b2", hash)
|
|
}
|