Update fill-scenarios
, contract-wrappers
, contract-artifacts
, abi-gen-wrappers
to use new domain schema and Order
format.
This commit is contained in:
committed by
Amir Bandeali
parent
665942a8c9
commit
4aae7348d1
@@ -38,6 +38,10 @@ describe('ABI Decoding Calldata', () => {
|
||||
const [privateKeyLeft, privateKeyRight] = constants.TESTRPC_PRIVATE_KEYS;
|
||||
const exchangeAddress = addressUtils.generatePseudoRandomAddress();
|
||||
const feeRecipientAddress = addressUtils.generatePseudoRandomAddress();
|
||||
const domain = {
|
||||
verifyingContractAddress: exchangeAddress,
|
||||
chainId,
|
||||
};
|
||||
// Create orders to match.
|
||||
// Values are arbitrary, with the exception of maker addresses (generated above).
|
||||
orderLeft = {
|
||||
@@ -69,9 +73,9 @@ describe('ABI Decoding Calldata', () => {
|
||||
salt: new BigNumber(50010),
|
||||
};
|
||||
const orderFactoryLeft = new OrderFactory(privateKeyLeft, orderLeft);
|
||||
signedOrderLeft = await orderFactoryLeft.newSignedOrderAsync({ exchangeAddress, chainId });
|
||||
signedOrderLeft = await orderFactoryLeft.newSignedOrderAsync({ domain });
|
||||
const orderFactoryRight = new OrderFactory(privateKeyRight, orderRight);
|
||||
signedOrderRight = await orderFactoryRight.newSignedOrderAsync({ exchangeAddress, chainId });
|
||||
signedOrderRight = await orderFactoryRight.newSignedOrderAsync({ domain });
|
||||
// Encode match orders transaction
|
||||
contractAddresses = await migrateOnceAsync();
|
||||
await blockchainLifecycle.startAsync();
|
||||
|
@@ -89,7 +89,7 @@ export class DutchAuctionUtils {
|
||||
sellOrder.takerAssetData,
|
||||
sellOrder.makerAssetAmount,
|
||||
sellOrder.makerAssetData,
|
||||
sellOrder.exchangeAddress,
|
||||
sellOrder.domain.verifyingContractAddress,
|
||||
{
|
||||
senderAddress,
|
||||
makerFee,
|
||||
|
Reference in New Issue
Block a user