fix: fixed the names to be consistent with Java, Ethereum.SetMaxGasAllowanceHbar and Ethereum.SetCallDataFileID
@@ -48,12 +48,19 @@ func (transaction *EthereumTransaction) GetEthereumData() []byte {
return transaction.ethereumData
}
+// Deprecated
func (transaction *EthereumTransaction) SetCallData(file FileID) *EthereumTransaction {
transaction._RequireNotFrozen()
transaction.callData = &file
return transaction
}
+func (transaction *EthereumTransaction) SetCallDataFileID(file FileID) *EthereumTransaction {
+ transaction._RequireNotFrozen()
+ transaction.callData = &file
+ return transaction
+}
+
// GetCallData
// For large transactions (for example contract create) this is the callData
// of the ethereumData. The data in the ethereumData will be re-written with
@@ -77,6 +84,12 @@ func (transaction *EthereumTransaction) SetMaxGasAllowed(gas int64) *EthereumTra
return transaction
}
+func (transaction *EthereumTransaction) SetMaxGasAllowanceHbar(gas Hbar) *EthereumTransaction {
+ transaction._RequireNotFrozen()
+ transaction.MaxGasAllowed = gas.AsTinybar()
+ return transaction
+}
+
func (transaction *EthereumTransaction) GetMaxGasAllowed() int64 {
return transaction.MaxGasAllowed
}
