[ctr/lua] bug fix - changed base58 to base58check at aergoluac
@@ -18,12 +18,12 @@ import (
"bytes"
"encoding/binary"
"fmt"
+ "github.com/aergoio/aergo/types"
"io/ioutil"
"log"
"os"
"unsafe"
- "github.com/mr-tron/base58/base58"
"github.com/spf13/cobra"
)
@@ -91,7 +91,7 @@ func dumpFromFile(srcFileName string) {
if errMsg := C.vm_stringdump(L); errMsg != nil {
log.Fatal(C.GoString(errMsg))
}
- fmt.Print(base58.Encode(b.Bytes()))
+ fmt.Print(types.EncodeAddress(b.Bytes()))
}
func dumpFromStdin() {
@@ -127,7 +127,7 @@ func dumpFromStdin() {
if errMsg := C.vm_stringdump(L); errMsg != nil {
log.Fatal(C.GoString(errMsg))
}
- fmt.Print(base58.Encode(b.Bytes()))
+ fmt.Print(types.EncodeAddress(b.Bytes()))
}
//export addLen
