Skip to content

Commit be41f15

Browse files
authored
pingpong: fix regression when making app calls (#6425)
1 parent 26d04e5 commit be41f15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared/pingpong/pingpong.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,7 @@ func (pps *WorkerState) constructAppTxn(from string, fee uint64, client *libgoal
12051205
}
12061206

12071207
appOptIns := pps.cinfo.OptIns[aidx]
1208+
sender = from
12081209
if len(appOptIns) > 0 {
12091210
indices := rand.Perm(len(appOptIns))
12101211
limit := 5
@@ -1219,6 +1220,7 @@ func (pps *WorkerState) constructAppTxn(from string, fee uint64, client *libgoal
12191220
if pps.cinfo.AppParams[aidx].Creator != from &&
12201221
!slices.Contains(appOptIns, from) {
12211222
from = accounts[0]
1223+
sender = from
12221224
}
12231225
accounts = accounts[1:]
12241226
}

0 commit comments

Comments
 (0)