Skip to main content
fix. (I don't have a use case either for https://ethereum.stackexchange.com/questions/18370/can-solidity-access-the-gaslimit-not-just-the-remaining-gas/18373?noredirect=1#comment19591_18373)
Source Link
eth
  • 86.5k
  • 53
  • 287
  • 411

The options that you are passing in the last json object are: gaslimit and value of Ether to send along. These (and other configurable parameters such as the sender or the gasprice) are available via msg and tx objects as described here:

function EscrowPayment(address _seller, address _judge) payable {
    gasLimit = msg.gas; // this is only the *remaining* gas and not the exact value that you passed
    value = msg.value; // in Wei
    gasPrice = tx.gasprice;
    buyer = msg.sender;
    seller = _seller;
    judge = _judge;
}

The options that you are passing in the last json object are: gaslimit and value of Ether to send along. These (and other configurable parameters such as the sender or the gasprice) are available via msg and tx objects as described here:

function EscrowPayment(address _seller, address _judge) payable {
    gasLimit = gas; // this is only the *remaining* gas and not the exact value that you passed
    value = msg.value; // in Wei
    gasPrice = tx.gasprice;
    buyer = msg.sender;
    seller = _seller;
    judge = _judge;
}

The options that you are passing in the last json object are: gaslimit and value of Ether to send along. These (and other configurable parameters such as the sender or the gasprice) are available via msg and tx objects as described here:

function EscrowPayment(address _seller, address _judge) payable {
    gasLimit = msg.gas; // this is only the *remaining* gas and not the exact value that you passed
    value = msg.value; // in Wei
    gasPrice = tx.gasprice;
    buyer = msg.sender;
    seller = _seller;
    judge = _judge;
}
Source Link
SCBuergel
  • 8.8k
  • 8
  • 38
  • 69

The options that you are passing in the last json object are: gaslimit and value of Ether to send along. These (and other configurable parameters such as the sender or the gasprice) are available via msg and tx objects as described here:

function EscrowPayment(address _seller, address _judge) payable {
    gasLimit = gas; // this is only the *remaining* gas and not the exact value that you passed
    value = msg.value; // in Wei
    gasPrice = tx.gasprice;
    buyer = msg.sender;
    seller = _seller;
    judge = _judge;
}