Files
novatask/internal/pkg/aptos/aptos_test.go
2024-12-20 17:50:24 +08:00

18 lines
521 B
Go

package aptos
import (
"fmt"
"github.com/stretchr/testify/require"
"testing"
)
func TestGetTransactionOwnerAddress(t *testing.T) {
addr, err := GetTransactionOwnerAddress("0x5a0ad9e31a2f452504429b6f7073cb325994c2c66204f5deb8e0561a9e950c3c::TeviStar", "0xaa42ec3ca61f398e52ed05fe12daee7df768468e77079184665846a1a1891217", "")
require.Nil(t, err)
fmt.Println(addr)
}
func TestStrPadAptosAddress(t *testing.T) {
fmt.Println(StrPadAptosAddress("0x69d09434572ff312fcd4dc805318c29acf8e5daa2938cd38e674b7eb446063"))
}