Fernando Sobreira
Fernando Sobreira
Confirmed, the problem seems to be on the API. "TransferAssetToView" return empty data when amount has decimal part.
try this: ``` import ( "crypto/sha256" "encoding/hex" "testing" "github.com/btcsuite/btcd/btcec" "github.com/ethereum/go-ethereum/crypto" "github.com/fbsobreira/gotron-sdk/pkg/client" "github.com/stretchr/testify/require" "google.golang.org/grpc" "google.golang.org/protobuf/proto" ) func TestSend(t *testing.T) { fromAddress := "" toAddress := "" privateKeyBytes, _ := hex.DecodeString("ABCD") c...
you just need to sign the same hash and append them all in signature slice... example: ``` rawData, _ := proto.Marshal(tx.GetRawData()) h256h := sha256.New() h256h.Write(rawData) hash := h256h.Sum(nil) signature1, err...
I was facing the same problem... `. cargo_out_dir("src")` will create a random folder under `./target/release/build/proto-xxxx/out/src/mod.rs instead use `.out_dir("src")` it will generate files under `./src/mod.rs`
it should match, are you changing anything prior sign the TX? Like extra data or permission id? If so you can use https://github.com/fbsobreira/gotron-sdk/blob/a6734d0f98885f901b9179a635ea0eaec00ab421/pkg/client/contracts.go#L299
there is not an implemented method on this repo to do this. you can derive from TX data or from TX log, such as: TX Data ``` func addressFromPaddedHexString(s string)...