the729 / go-libra

Libra go client library with crypto verifications
Apache License 2.0
44 stars 8 forks source link

RotateKeys not working #13

Closed philsippl closed 4 years ago

philsippl commented 4 years ago

I've tried to make the RotateKeys function working, but there seems to be problems regarding the passing of byte arrays. This is what I tried to pass as the payload of a raw transaction (key is a []byte slice):

payload := &types.TxnPayloadScript{
    Code: stdscript.RotateAuthKey,
    Args: []types.TransactionArgument{
        types.TxnArgBytes(key),
    },
}

Could you try to verify if RotateKeys is working for you or the problem is related to libra core?

the729 commented 4 years ago

The testnet was updated.

Problem should be fixed with the latest master branch. Please have a try.

the729 commented 4 years ago

Closed. Feel free to reopen if there is still problems.