Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

[FIX] fix calls to transaction.addMemo (RT-3497) #2572

Merged
merged 1 commit into from
Aug 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/js/services/integration/inboundBridge.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.service('rpInboundBridgeProfile', ['$rootScope', 'rpNetwork', 'rpId', '$h
tx.setFlags('NoRipple');

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// txQueue please set the trust line asap.
txQueue.addTransaction(tx);
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/brl.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ BrlTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/btc.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ BtcTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/cad.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CadTab.prototype.angular = function(module) {
var tx = $network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down
4 changes: 2 additions & 2 deletions src/js/tabs/eur.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ EurTab.prototype.angular = function (module)
var tx = $network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down Expand Up @@ -141,7 +141,7 @@ EurTab.prototype.angular = function (module)
var tx = $network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/exchange.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ ExchangeTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $rootScope.version);
tx.addMemo('client', 'text/plain', 'rt' + $rootScope.version);

// Destination tag
tx.destination_tag(webutil.getDestTagFromAddress(id.account));
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/gold.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ GoldTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/jpy.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ JpyTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/mxn.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ MxnTab.prototype.angular = function (module)
var tx = $network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/send.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ SendTab.prototype.angular = function (module)
}

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

if (send.secret) {
tx.secret(send.secret);
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/sgd.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SgdTab.prototype.angular = function(module) {
var tx = $network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down
2 changes: 1 addition & 1 deletion src/js/tabs/trade.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ TradeTab.prototype.angular = function(module)
);

// Add memo to tx
tx.addMemo('client', 'rt' + $rootScope.version);
tx.addMemo('client', 'text/plain', 'rt' + $rootScope.version);

// Sets a tfSell flag. This is the only way to distinguish
// sell offers from buys.
Expand Down
10 changes: 5 additions & 5 deletions src/js/tabs/trust.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ TrustTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);


// Flags
Expand Down Expand Up @@ -464,7 +464,7 @@ TrustTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

tx.trustSet(idAccount, '0' + '/' + lineCurrency + '/' + lineAccount);

Expand All @@ -483,7 +483,7 @@ TrustTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

var payment = tx.payment(selfAddress, selfAddress, '100000000000');

Expand All @@ -497,7 +497,7 @@ TrustTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

var amount = amountObject.clone();
var newAmount = amount.set_issuer(issuerAddress);
Expand Down Expand Up @@ -580,7 +580,7 @@ TrustTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down
6 changes: 3 additions & 3 deletions src/js/tabs/usd.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ UsdTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down Expand Up @@ -154,7 +154,7 @@ UsdTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down Expand Up @@ -251,7 +251,7 @@ UsdTab.prototype.angular = function (module)
var tx = network.remote.transaction();

// Add memo to tx
tx.addMemo('client', 'rt' + $scope.version);
tx.addMemo('client', 'text/plain', 'rt' + $scope.version);

// Flags
tx
Expand Down