Closed
Description
To Reproduce
Steps to reproduce the behavior:
Xcode 15.2 / iOS
Token: https://cardanoscan.io/token/cc8d1b026353022abbfcc2e1e71159f9e308d9c6e905ac1db24c7fb650617269627573
Try to build CardanoSigingInput
and update plan
via input.plan = AnySigner.plan(input: input, coin: coinType)
I received the SwiftProtobuf.BinaryDecodingError error 2
with this this description
[libprotobuf ERROR */wallet-core/swift/protobuf/google/protobuf/wire_format_lite.cc:581] String field 'TW.Cardano.Proto.TokenAmount.asset_name' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
[libprotobuf ERROR */wallet-core/swift/protobuf/google/protobuf/wire_format_lite.cc:581] String field 'TW.Cardano.Proto.TokenAmount.asset_name' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
[libprotobuf ERROR */wallet-core/swift/protobuf/google/protobuf/wire_format_lite.cc:581] String field 'TW.Cardano.Proto.TokenAmount.asset_name' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
I filled in this way:
CardanoTokenAmount.with {
$0.policyID = asset.policyID // cc8d1b026353022abbfcc2e1e71159f9e308d9c6e905ac1db24c7fb6
$0.assetNameHex = asset.assetNameHex // 50617269627573
$0.amount = amount.serialize() // 01312d00
}
Looks like the problem in the assetNameHex
but I have no idea why ?
With other tokens everything is good.