Skip to content

Commit 526ff14

Browse files
authored
Merge pull request #3650 from Algo-devops-service/relbeta3.4.1
go-algorand 3.4.1-beta
2 parents f880d8f + b936369 commit 526ff14

File tree

22 files changed

+423
-68
lines changed

22 files changed

+423
-68
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ commands:
321321
export PACKAGE_NAMES=$(echo $PACKAGES | tr -d '\n')
322322
export PARTITION_TOTAL=${CIRCLE_NODE_TOTAL}
323323
export PARTITION_ID=${CIRCLE_NODE_INDEX}
324-
gotestsum --format testname --junitfile << parameters.result_path >>/<< parameters.result_subdir >>/${CIRCLE_NODE_INDEX}/results.xml --jsonfile << parameters.result_path >>/<< parameters.result_subdir >>/${CIRCLE_NODE_INDEX}/testresults.json -- --tags "sqlite_unlock_notify sqlite_omit_load_extension" << parameters.short_test_flag >> -race -timeout 1h -coverprofile=coverage.txt -covermode=atomic -p 1 $PACKAGE_NAMES
324+
gotestsum --format standard-verbose --junitfile << parameters.result_path >>/<< parameters.result_subdir >>/${CIRCLE_NODE_INDEX}/results.xml --jsonfile << parameters.result_path >>/<< parameters.result_subdir >>/${CIRCLE_NODE_INDEX}/testresults.json -- --tags "sqlite_unlock_notify sqlite_omit_load_extension" << parameters.short_test_flag >> -race -timeout 1h -coverprofile=coverage.txt -covermode=atomic -p 1 $PACKAGE_NAMES
325325
- store_artifacts:
326326
path: << parameters.result_path >>
327327
destination: test-results

buildnumber.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0
1+
1

cmd/tealdbg/cdtSession.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (s *cdtSession) websocketHandler(w http.ResponseWriter, r *http.Request) {
169169
state.Update(cdtStateUpdate{
170170
dbgState.Stack, dbgState.Scratch,
171171
0, 0, "",
172-
s.debugger.GetStates(nil),
172+
dbgState.OpcodeBudget, s.debugger.GetStates(nil),
173173
})
174174

175175
hash := sha256.Sum256([]byte(state.disassembly)) // some random hash
@@ -247,7 +247,7 @@ func (s *cdtSession) websocketHandler(w http.ResponseWriter, r *http.Request) {
247247
state.Update(cdtStateUpdate{
248248
dbgState.Stack, dbgState.Scratch,
249249
dbgState.PC, dbgState.Line, dbgState.Error,
250-
appState,
250+
dbgState.OpcodeBudget, appState,
251251
})
252252
dbgStateMu.Unlock()
253253

cmd/tealdbg/cdtSession_test.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,42 @@ func TestCdtSessionGetObjects(t *testing.T) {
527527
},
528528
},
529529
},
530+
logs: []string{"test log 1", "test log 2"},
531+
innerTxns: []transactions.SignedTxnWithAD{
532+
{
533+
SignedTxn: transactions.SignedTxn{
534+
Txn: transactions.Transaction{
535+
Type: protocol.ApplicationCallTx,
536+
ApplicationCallTxnFields: transactions.ApplicationCallTxnFields{
537+
ApplicationArgs: [][]byte{{0, 1, 2, 3}},
538+
},
539+
},
540+
},
541+
ApplyData: transactions.ApplyData{
542+
EvalDelta: transactions.EvalDelta{
543+
InnerTxns: transactions.WrapSignedTxnsWithAD([]transactions.SignedTxn{
544+
{
545+
Txn: transactions.Transaction{
546+
Type: protocol.PaymentTx,
547+
Header: transactions.Header{
548+
Sender: basics.Address{}, Fee: basics.MicroAlgos{Raw: 1000}, FirstValid: 10,
549+
},
550+
},
551+
},
552+
{
553+
Txn: transactions.Transaction{
554+
Type: protocol.ApplicationCallTx,
555+
ApplicationCallTxnFields: transactions.ApplicationCallTxnFields{
556+
ApplicationArgs: [][]byte{{0, 1, 2, 3}},
557+
},
558+
},
559+
},
560+
}),
561+
Logs: []string{"test nested log"},
562+
},
563+
},
564+
},
565+
},
530566
},
531567
}
532568

@@ -555,6 +591,9 @@ func TestCdtSessionGetObjects(t *testing.T) {
555591
encodeAppLocalsAddr(basics.Address{}.String()),
556592
encodeAppGlobalAppID("0"), encodeAppGlobalAppID("1"),
557593
encodeAppLocalsAppID(basics.Address{}.String(), "1"),
594+
encodeLogsID([]int{0}), encodeLogsID([]int{0, 1}),
595+
encodeInnerTxnID([]int{0}), encodeInnerTxnID([]int{0, 0}),
596+
encodeInnerTxnID([]int{0, 1}),
558597
}
559598
for _, k := range objIds {
560599
req.Params = map[string]interface{}{"objectId": k, "generatePreview": true}

0 commit comments

Comments
 (0)