Skip to content

Commit

Permalink
tests: correct copying
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Jul 30, 2020
1 parent 13f15c4 commit 2a2d74c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/construction-txtypes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a2d74c

Please sign in to comment.