mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cosmetic.
This commit is contained in:
@@ -50,7 +50,7 @@ public:
|
||||
|
||||
Interpreter();
|
||||
|
||||
// returns a TransactionEngineResult
|
||||
// returns a TransactionEngineResult
|
||||
TER interpret(Contract* contract,const SerializedTransaction& txn,std::vector<unsigned char>& code);
|
||||
|
||||
void stop();
|
||||
@@ -67,16 +67,13 @@ public:
|
||||
bool startBlock(int offset);
|
||||
bool endBlock();
|
||||
|
||||
|
||||
Data::pointer getIntData();
|
||||
Data::pointer getFloatData();
|
||||
Data::pointer getUint160Data();
|
||||
Data::pointer getAcceptData(int index);
|
||||
Data::pointer getContractData(int index);
|
||||
|
||||
|
||||
};
|
||||
|
||||
} // end namespace
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -13,4 +13,6 @@ Offer::Offer(SerializedLedgerEntry::pointer ledgerEntry) : AccountItem(ledgerEnt
|
||||
mTakerGets = mLedgerEntry->getFieldAmount(sfTakerGets);
|
||||
mTakerPays = mLedgerEntry->getFieldAmount(sfTakerPays);
|
||||
mSeq = mLedgerEntry->getFieldU32(sfSequence);
|
||||
}
|
||||
}
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "AccountItems.h"
|
||||
|
||||
|
||||
class Offer : public AccountItem
|
||||
{
|
||||
RippleAddress mAccount;
|
||||
@@ -20,4 +19,6 @@ public:
|
||||
RippleAddress getAccount(){ return(mAccount); }
|
||||
int getSeq(){ return(mSeq); }
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
@@ -305,7 +305,7 @@ public:
|
||||
bool work(Interpreter* interpreter)
|
||||
{
|
||||
Data::pointer index=interpreter->popStack();
|
||||
if(index->isInt32())
|
||||
if(index->isInt32())
|
||||
{
|
||||
interpreter->pushStack( interpreter->getContractData(index->getInt()));
|
||||
return(true);
|
||||
@@ -315,4 +315,6 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
@@ -30,6 +30,6 @@ public:
|
||||
|
||||
// looks through the best offers to see how much it would cost to take the given amount
|
||||
STAmount& getTakePrice(STAmount& takeAmount);
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
// vim:ts=4
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
#include "ScriptData.h"
|
||||
#include "ScriptData.h"
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
namespace Script {
|
||||
class Data
|
||||
class Data
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<Data> pointer;
|
||||
@@ -89,5 +89,6 @@ public:
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
Reference in New Issue
Block a user