public void TestBumpSequence() { // GC5SIC4E3V56VOHJ3OZAX5SJDTWY52JYI2AFK6PUGSXFVRJQYQXXZBZF var source = KeyPair.FromSecretSeed("SC4CGETADVYTCR5HEAVZRB3DZQY5Y4J7RFNJTRA6ESMHIPEZUSTE2QDK"); var operation = new BumpSequenceOperation.Builder(156L) .SetSourceAccount(source) .Build(); var xdr = operation.ToXdr(); var parsedOperation = (BumpSequenceOperation)Operation.FromXdr(xdr); Assert.AreEqual(156L, parsedOperation.BumpTo); Assert.AreEqual("AAAAAQAAAAC7JAuE3XvquOnbsgv2SRztjuk4RoBVefQ0rlrFMMQvfAAAAAsAAAAAAAAAnA==", operation.ToXdrBase64()); }
public static Transaction BuildBumpSequenceTransaction(TransactionBuilderOptions options, long bumpTo) { var bumpToOp = new BumpSequenceOperation.Builder(bumpTo).Build(); return(BuildTransaction(options, bumpToOp)); }