small fixes
This commit is contained in:
parent
922fea958f
commit
be024406d2
|
@ -40,10 +40,9 @@ contract IdentityGasRelay is Identity {
|
||||||
external
|
external
|
||||||
{
|
{
|
||||||
uint startGas = gasleft();
|
uint startGas = gasleft();
|
||||||
require(startGas >= _gasLimit);
|
|
||||||
//verify transaction parameters
|
//verify transaction parameters
|
||||||
|
require(startGas >= _gasLimit);
|
||||||
require(_nonce == nonce);
|
require(_nonce == nonce);
|
||||||
;
|
|
||||||
// calculates signHash
|
// calculates signHash
|
||||||
bytes32 signHash = getSignHash(
|
bytes32 signHash = getSignHash(
|
||||||
callGasRelayHash(
|
callGasRelayHash(
|
||||||
|
@ -113,8 +112,8 @@ contract IdentityGasRelay is Identity {
|
||||||
external
|
external
|
||||||
{
|
{
|
||||||
uint startGas = gasleft();
|
uint startGas = gasleft();
|
||||||
require(startGas >= _gasLimit);
|
|
||||||
//verify transaction parameters
|
//verify transaction parameters
|
||||||
|
require(startGas >= _gasLimit);
|
||||||
require(_nonce == nonce);
|
require(_nonce == nonce);
|
||||||
require(_baseToken != address(0)); //_baseToken should be something!
|
require(_baseToken != address(0)); //_baseToken should be something!
|
||||||
require(_to != address(this)); //no management with approveAndCall
|
require(_to != address(this)); //no management with approveAndCall
|
||||||
|
@ -178,7 +177,7 @@ contract IdentityGasRelay is Identity {
|
||||||
returns(bool)
|
returns(bool)
|
||||||
{
|
{
|
||||||
uint _amountSignatures = _messageSignatures.length / 72;
|
uint _amountSignatures = _messageSignatures.length / 72;
|
||||||
require(_amountSignatures == minimumApprovalsByKeyPurpose[_requiredKey]);
|
require(_amountSignatures == purposeThreshold[_requiredKey]);
|
||||||
bytes32 _lastKey = 0;
|
bytes32 _lastKey = 0;
|
||||||
for (uint256 i = 0; i < _amountSignatures; i++) {
|
for (uint256 i = 0; i < _amountSignatures; i++) {
|
||||||
bytes32 _currentKey = recoverKey(
|
bytes32 _currentKey = recoverKey(
|
||||||
|
|
Loading…
Reference in New Issue