keybase / stellarnet

BSD 3-Clause "New" or "Revised" License
9 stars 16 forks source link

request parameter "xdr" is invalid #96

Open cblp opened 2 years ago

cblp commented 2 years ago

I'm trying to sign a transaction with KeyBase client SEP-7 handler, and I get request parameter "xdr" is invalid, but Stellar laboratory decodes this transaction successfully:

AAAAAgAAAACfPd+FSFlAx6BAfyJSF/nTy99q5NqNJ/ZB2HYUw2RilAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAEkxvZ2dpbmcgaW50byBWZWNoZQAAAAAAAQAAAAAAAAAKAAAABW5vbmNlAAAAAAAAAQAAABhvV3ZzemtVUVJZZmNnbVg4WFRRMXJLeDUAAAAAAAAAAA==

What's wrong? Is your vendored XDR library up-to-date?

cblp commented 2 years ago

The same in CLI:

$ keybase wallet sign --xdr AAAAAgAAAACfPd+FSFlAx6BAfyJSF/nTy99q5NqNJ/ZB2HYUw2RilAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAEkxvZ2dpbmcgaW50byBWZWNoZQAAAAAAAQAAAAAAAAAKAAAABW5vbmNlAAAAAAAAAQAAABhvV3ZzemtVUVJZZmNnbVg4WFRRMXJLeDUAAAAAAAAAAA==
▶ ERROR decoding tx: xdr:decode: switch '2' is not valid enum value for union