umbracle / ethgo

Ethereum Golang API
https://www.ethgoproject.io
Mozilla Public License 2.0
484 stars 134 forks source link

Why are primitive types not copied? For example gas\gasprice\nonce #219

Closed greyireland closed 2 years ago

greyireland commented 2 years ago

169

ferranbt commented 2 years ago

Hey, do you mean the Gas, GasPrice, and Nonce fields of the Transaction struct?

greyireland commented 2 years ago

yes

greyireland commented 2 years ago

I miss the code *tt = *t,there is anther problem,this copy transaction hash is not copy

greyireland commented 2 years ago

I missed ,GetHash() should work