Cosmetic.

This commit is contained in:
Arthur Britto
2013-01-12 21:51:57 -08:00
parent a2abddff4f
commit e62aff72cb
7 changed files with 20 additions and 15 deletions

View File

@@ -50,7 +50,7 @@ public:
Interpreter(); Interpreter();
// returns a TransactionEngineResult // returns a TransactionEngineResult
TER interpret(Contract* contract,const SerializedTransaction& txn,std::vector<unsigned char>& code); TER interpret(Contract* contract,const SerializedTransaction& txn,std::vector<unsigned char>& code);
void stop(); void stop();
@@ -67,16 +67,13 @@ public:
bool startBlock(int offset); bool startBlock(int offset);
bool endBlock(); bool endBlock();
Data::pointer getIntData(); Data::pointer getIntData();
Data::pointer getFloatData(); Data::pointer getFloatData();
Data::pointer getUint160Data(); Data::pointer getUint160Data();
Data::pointer getAcceptData(int index); Data::pointer getAcceptData(int index);
Data::pointer getContractData(int index); Data::pointer getContractData(int index);
}; };
} // end namespace } // end namespace
#endif #endif

View File

@@ -13,4 +13,6 @@ Offer::Offer(SerializedLedgerEntry::pointer ledgerEntry) : AccountItem(ledgerEnt
mTakerGets = mLedgerEntry->getFieldAmount(sfTakerGets); mTakerGets = mLedgerEntry->getFieldAmount(sfTakerGets);
mTakerPays = mLedgerEntry->getFieldAmount(sfTakerPays); mTakerPays = mLedgerEntry->getFieldAmount(sfTakerPays);
mSeq = mLedgerEntry->getFieldU32(sfSequence); mSeq = mLedgerEntry->getFieldU32(sfSequence);
} }
// vim:ts=4

View File

@@ -1,6 +1,5 @@
#include "AccountItems.h" #include "AccountItems.h"
class Offer : public AccountItem class Offer : public AccountItem
{ {
RippleAddress mAccount; RippleAddress mAccount;
@@ -20,4 +19,6 @@ public:
RippleAddress getAccount(){ return(mAccount); } RippleAddress getAccount(){ return(mAccount); }
int getSeq(){ return(mSeq); } int getSeq(){ return(mSeq); }
}; };
// vim:ts=4

View File

@@ -305,7 +305,7 @@ public:
bool work(Interpreter* interpreter) bool work(Interpreter* interpreter)
{ {
Data::pointer index=interpreter->popStack(); Data::pointer index=interpreter->popStack();
if(index->isInt32()) if(index->isInt32())
{ {
interpreter->pushStack( interpreter->getContractData(index->getInt())); interpreter->pushStack( interpreter->getContractData(index->getInt()));
return(true); return(true);
@@ -315,4 +315,6 @@ public:
} }
}; };
} }
// vim:ts=4

View File

@@ -30,6 +30,6 @@ public:
// looks through the best offers to see how much it would cost to take the given amount // looks through the best offers to see how much it would cost to take the given amount
STAmount& getTakePrice(STAmount& takeAmount); STAmount& getTakePrice(STAmount& takeAmount);
};
}; // vim:ts=4

View File

@@ -1 +1,3 @@
#include "ScriptData.h" #include "ScriptData.h"
// vim:ts=4

View File

@@ -4,7 +4,7 @@
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
namespace Script { namespace Script {
class Data class Data
{ {
public: public:
typedef boost::shared_ptr<Data> pointer; typedef boost::shared_ptr<Data> pointer;
@@ -89,5 +89,6 @@ public:
} }
#endif
#endif // vim:ts=4