From 5fef82544fd2ed75da574bedf9692ae72213f0fc Mon Sep 17 00:00:00 2001 From: Warren He Date: Thu, 30 Jul 2020 12:46:16 -0700 Subject: [PATCH] tests: correct copying --- tests/construction-txtypes/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/construction-txtypes/main.go b/tests/construction-txtypes/main.go index 9802fcd8..13622c45 100644 --- a/tests/construction-txtypes/main.go +++ b/tests/construction-txtypes/main.go @@ -269,8 +269,10 @@ func main() { var parsedOpsResolved []*types.Operation for _, op := range r3.Operations { if op.Account.Address == services.FromPlaceholder { - op = &*op - op.Account = &*op.Account + opCopy := *op + op = &opCopy + accountCopy := *op.Account + op.Account = &accountCopy op.Account.Address = testEntityAddress } parsedOpsResolved = append(parsedOpsResolved, op)