public void TestMuxedAccounts() { var muxed = new MuxedAccountMed25519(FeeSource, 0); var tx = TransactionBuilder.BuildFeeBumpTransaction(muxed, InnerTransaction, 100); var xdr = tx.ToUnsignedEnvelopeXdr(); var txMuxed = MuxedAccount.FromXdrMuxedAccount(xdr.FeeBump.Tx.FeeSource); Assert.AreEqual(muxed.Address, txMuxed.Address); }
public void TestMuxedAccounts() { var originalXdr = "AAAABQAAAQAAAAAAAAAAAOBIkbYY5QzL8f2UfKNhk7DK7LK0fzLTBZqhzn3ov5sSAAAAAAAAAMgAAAACAAAAAHN2/eiOTNYcwPspSheGs/HQYfXy8cpXRl+qkyIRuUbWAAAAZAAAAAAAAAAIAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAD0hhcHB5IGJpcnRoZGF5IQAAAAABAAAAAAAAAAEAAAAA4EiRthjlDMvx/ZR8o2GTsMrssrR/MtMFmqHOfei/mxIAAAAAAAAABKgXyAAAAAAAAAAAARG5RtYAAABAr3fcOe3WnFeWx/UHkJifzU8vF5izH4yJX0QZsx1R8Rx0NZTJLIiR3Ml5+OlHl6N1dWn8peiwaY1RD4OsgGXODQAAAAAAAAAA"; var tx = TransactionBuilder.FromEnvelopeXdr(originalXdr); var xdr = tx.ToUnsignedEnvelopeXdr(); var txMuxed = MuxedAccount.FromXdrMuxedAccount(xdr.FeeBump.Tx.FeeSource); Assert.IsNotNull(txMuxed.Address); }