Merge pull request #2215 from bas-vk/estimategas

core: improved check for contract creation
This commit is contained in:
Péter Szilágyi
2016-03-01 10:59:12 +02:00
2 changed files with 32 additions and 35 deletions

View File

@ -78,7 +78,7 @@ func MessageCreatesContract(msg Message) bool {
return msg.To() == nil
}
// IntrinsicGas computes the 'intrisic gas' for a message
// IntrinsicGas computes the 'intrinsic gas' for a message
// with the given data.
func IntrinsicGas(data []byte, contractCreation, homestead bool) *big.Int {
igas := new(big.Int)