Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
moodlezoup committed Feb 14, 2020
1 parent 8371bc8 commit bd22263
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contracts/broker/src/gods_unchained_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { ERC1155AssetData } from '@0x/types';
import { AbiEncoder, BigNumber } from '@0x/utils';

export interface GodsUnchainedProperties {
proto: BigNumber;
quality: BigNumber;
proto: BigNumber | number;
quality: BigNumber | number;
}

const propertyDataEncoder = AbiEncoder.create([{ name: 'proto', type: 'uint16' }, { name: 'quality', type: 'uint8' }]);
Expand Down
4 changes: 2 additions & 2 deletions contracts/integrations/test/broker/broker_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,8 @@ blockchainTests.resets('Broker <> Gods Unchained integration tests', env => {
});

describe('Data encoding/decoding tools', () => {
const MAX_UINT8 = new BigNumber(2).exponentiatedBy(8).minus(1);
const MAX_UINT16 = new BigNumber(2).exponentiatedBy(16).minus(1);
const MAX_UINT8 = 2 ** 8 - 1;
const MAX_UINT16 = 2 ** 16 - 1;

it('correctly decodes property data', async () => {
const properties = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { LocalBalanceStore } from '../framework/balances/local_balance_store';
import { DeploymentManager } from '../framework/deployment_manager';
import { ChainlinkStopLimitContract, TestChainlinkAggregatorContract } from '../wrappers';

blockchainTests.resets.only('Chainlink stop-limit order tests', env => {
blockchainTests.resets('Chainlink stop-limit order tests', env => {
let deployment: DeploymentManager;
let balanceStore: BlockchainBalanceStore;
let initialBalances: LocalBalanceStore;
Expand Down

0 comments on commit bd22263

Please sign in to comment.