Skip to content

Commit

Permalink
Implemented TransactionBuilder::bumpSequenceTo
Browse files Browse the repository at this point in the history
  • Loading branch information
zulucrypto committed Apr 4, 2018
1 parent 4b3ce4a commit 91882a4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Transaction/TransactionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use ZuluCrypto\StellarSdk\XdrModel\Memo;
use ZuluCrypto\StellarSdk\XdrModel\Operation\AccountMergeOp;
use ZuluCrypto\StellarSdk\XdrModel\Operation\AllowTrustOp;
use ZuluCrypto\StellarSdk\XdrModel\Operation\BumpSequenceOp;
use ZuluCrypto\StellarSdk\XdrModel\Operation\ChangeTrustOp;
use ZuluCrypto\StellarSdk\XdrModel\Operation\CreateAccountOp;
use ZuluCrypto\StellarSdk\XdrModel\Operation\ManageDataOp;
Expand Down Expand Up @@ -362,6 +363,16 @@ public function clearAccountData($key, $sourceAccountId = null)
return $this->addOperation(new ManageDataOp($key, null, $sourceAccountId));
}

/**
* @param BigInteger $bumpTo
* @param null $sourceAccountId
* @return TransactionBuilder
*/
public function bumpSequenceTo(BigInteger $bumpTo, $sourceAccountId = null)
{
return $this->addOperation(new BumpSequenceOp($bumpTo, $sourceAccountId));
}

/**
* @return string
*/
Expand Down

0 comments on commit 91882a4

Please sign in to comment.