Some methods like the account.BuildAndSend... methods, and even the original provider endpoints like rpc.AddInvokeTransaction return pointers to the txn responses types (ref).
These structs are small, so they can be returned as values instead of pointers. Let's change every code that returns these types as pointers and make them return values instead.
Some methods like the
account.BuildAndSend...methods, and even the original provider endpoints likerpc.AddInvokeTransactionreturn pointers to the txn responses types (ref).These structs are small, so they can be returned as values instead of pointers. Let's change every code that returns these types as pointers and make them return values instead.