Skip to content

Commit b305b29

Browse files
authored
Merge pull request #38 from gobicycle/develop
query id fix
2 parents 15e5a07 + 6328a51 commit b305b29

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

core/block_scanner.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ package core
33
import (
44
"context"
55
"fmt"
6+
"math/big"
7+
"sync"
8+
"time"
9+
610
"github.com/gobicycle/bicycle/audit"
711
"github.com/gobicycle/bicycle/config"
812
"github.com/gofrs/uuid"
@@ -14,9 +18,6 @@ import (
1418
"github.com/xssnick/tonutils-go/tlb"
1519
"github.com/xssnick/tonutils-go/ton"
1620
"github.com/xssnick/tonutils-go/tvm/cell"
17-
"math/big"
18-
"sync"
19-
"time"
2021
)
2122

2223
type BlockScanner struct {
@@ -517,7 +518,7 @@ func DecodeJettonTransfer(msg *tlb.InternalMessage) (JettonTransferMsg, error) {
517518
}, nil
518519
}
519520

520-
func decodeJettonExcesses(msg *tlb.InternalMessage) (uint64, error) {
521+
func decodeJettonExcesses(msg *tlb.InternalMessage) (int64, error) {
521522
if msg == nil {
522523
return 0, fmt.Errorf("nil msg")
523524
}
@@ -533,7 +534,7 @@ func decodeJettonExcesses(msg *tlb.InternalMessage) (uint64, error) {
533534
if err != nil {
534535
return 0, err
535536
}
536-
return excesses.QueryID, nil
537+
return int64(excesses.QueryID), nil
537538
}
538539

539540
func parseExternalMessage(msg *tlb.ExternalMessage) (

core/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ type ExternalWithdrawal struct {
223223
}
224224

225225
type JettonWithdrawalConfirmation struct {
226-
QueryId uint64
226+
QueryId int64
227227
}
228228

229229
type InternalIncome struct {

0 commit comments

Comments
 (0)