diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-05-30 02:22:57 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-05-31 08:11:31 +0800 |
commit | 8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279 (patch) | |
tree | da8c19511a2f193a3ddd08f6ce86936ca1c0dbcd /packages/contracts | |
parent | d625b65a095381c3fa8dd3192ee2115ee739cc07 (diff) | |
download | dexon-sol-tools-8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279.tar dexon-sol-tools-8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279.tar.gz dexon-sol-tools-8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279.tar.bz2 dexon-sol-tools-8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279.tar.lz dexon-sol-tools-8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279.tar.xz dexon-sol-tools-8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279.tar.zst dexon-sol-tools-8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279.zip |
Rename Signer to Wallet, rename GAS_ESTIMATE to GAS_LIMIT
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol | 4 | ||||
-rw-r--r-- | packages/contracts/src/contracts/current/protocol/Exchange/interfaces/IWallet.sol (renamed from packages/contracts/src/contracts/current/protocol/Exchange/interfaces/ISigner.sol) | 2 | ||||
-rw-r--r-- | packages/contracts/src/utils/web3_wrapper.ts | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol b/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol index 7f46766d6..7f4e20b5b 100644 --- a/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol +++ b/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol @@ -20,7 +20,7 @@ pragma solidity ^0.4.24; import "./mixins/MSignatureValidator.sol"; import "./mixins/MTransactions.sol"; -import "./interfaces/ISigner.sol"; +import "./interfaces/IWallet.sol"; import "./interfaces/IValidator.sol"; import "./libs/LibExchangeErrors.sol"; import "../../utils/LibBytes/LibBytes.sol"; @@ -168,7 +168,7 @@ contract MixinSignatureValidator is // Signature verified by wallet contract. // If used with an order, the maker of the order is the wallet contract. } else if (signatureType == SignatureType.Wallet) { - isValid = ISigner(signer).isValidSignature(hash, signature); + isValid = IWallet(signer).isValidSignature(hash, signature); return isValid; // Signature verified by validator contract. diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/interfaces/ISigner.sol b/packages/contracts/src/contracts/current/protocol/Exchange/interfaces/IWallet.sol index 0186ad490..c86a2c057 100644 --- a/packages/contracts/src/contracts/current/protocol/Exchange/interfaces/ISigner.sol +++ b/packages/contracts/src/contracts/current/protocol/Exchange/interfaces/IWallet.sol @@ -18,7 +18,7 @@ pragma solidity ^0.4.24; -contract ISigner { +contract IWallet { /// @dev Verifies that a signature is valid. /// @param hash Message hash that is signed. diff --git a/packages/contracts/src/utils/web3_wrapper.ts b/packages/contracts/src/utils/web3_wrapper.ts index 02595506b..4b8512222 100644 --- a/packages/contracts/src/utils/web3_wrapper.ts +++ b/packages/contracts/src/utils/web3_wrapper.ts @@ -7,7 +7,7 @@ import { coverage } from './coverage'; export const txDefaults = { from: devConstants.TESTRPC_FIRST_ADDRESS, - gas: devConstants.GAS_ESTIMATE, + gas: devConstants.GAS_LIMIT, }; const providerConfigs = { shouldUseInProcessGanache: true }; export const provider = web3Factory.getRpcProvider(providerConfigs); |