[Webfunds-commits] java/webfunds/client/sox SOXWallet.java

Ian Grigg iang@cypherpunks.ai
Sat, 17 Mar 2001 18:09:13 -0400 (AST)


iang        01/03/17 18:09:13

  Modified:    webfunds/client/sox SOXWallet.java
  Log:
  uses Contract.getPrintableAmount to create amount display string

Revision  Changes    Path
1.144     +5 -5      java/webfunds/client/sox/SOXWallet.java

Index: SOXWallet.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/sox/SOXWallet.java,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -r1.143 -r1.144
--- SOXWallet.java	2001/03/07 00:10:18	1.143
+++ SOXWallet.java	2001/03/17 22:09:12	1.144
@@ -1,4 +1,4 @@
-/* $Id: SOXWallet.java,v 1.143 2001/03/07 00:10:18 gelderen Exp $
+/* $Id: SOXWallet.java,v 1.144 2001/03/17 22:09:12 iang Exp $
  *
  * Copyright (c) Systemics Inc. 1995-2000 on behalf of
  * The WebFunds Development Team.  All Rights Reserved.
@@ -77,7 +77,7 @@
  *  See quiteCancel for example of low call.  It should not use AccountInfo
  *  (artifact of Receipt Store).
  *
- * @version $Revision: 1.143 $
+ * @version $Revision: 1.144 $
  */
 public class SOXWallet
     extends Debug
@@ -709,11 +709,11 @@
              *  Need to get the display amount into unit of account.
              */
             Contract contract = contracts.getContract(contractid);
-            double am = amount;
+            String am = "" + amount;
             String name = contractid.toString();
             if (contract != null)
             {
-                am = contract.getUnitsOfAccount(amount);
+                am = contract.getPrintableAmount(amount);
                 name = contract.getName();
             }
             String descString = Hex.printable(desc);
@@ -1851,7 +1851,7 @@
         //
         // Before we grab the subaccount, check if it exists.
         //
-        ItemId item = trans.getContract();
+        ItemId item = trans.getContractId();
         String pid = trans.getTransId();   // is the SOX payment id
 
         ValueAccount sub = (ValueAccount) account.getSub(item);