Skip to content

Commit 1ed892e

Browse files
committed
Remove unused payloadDecoders
1 parent b67a364 commit 1ed892e

File tree

6 files changed

+16
-25
lines changed

6 files changed

+16
-25
lines changed

pkg/ton/debug/decoders/ccip/ccipsendexecutor/ccipsendexecutor.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ var TLBs = lib.MustNewTLBMap([]interface{}{
1919
// because they are already handled by their respective decoders (jetton wallet and fee quoter)
2020
})
2121

22-
type decoder struct {
23-
payloadDecoders map[cldf.ContractType]lib.ContractDecoder
24-
}
22+
type decoder struct{}
2523

26-
func NewDecoder(payloadDecoders map[cldf.ContractType]lib.ContractDecoder) lib.ContractDecoder {
27-
return &decoder{payloadDecoders}
24+
func NewDecoder() lib.ContractDecoder {
25+
return &decoder{}
2826
}
2927

3028
// ContractType implements lib.ContractDecoder.

pkg/ton/debug/decoders/ccip/onramp/onramp.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ var TLBs = lib.MustNewTLBMap([]interface{}{
2424
onramp.UpdateAllowlistsMessage{},
2525
})
2626

27-
type decoder struct {
28-
payloadDecoders map[cldf.ContractType]lib.ContractDecoder
29-
}
27+
type decoder struct{}
3028

31-
func NewDecoder(payloadDecoders map[cldf.ContractType]lib.ContractDecoder) lib.ContractDecoder {
32-
return &decoder{payloadDecoders}
29+
func NewDecoder() lib.ContractDecoder {
30+
return &decoder{}
3331
}
3432

3533
// ContractType implements lib.ContractDecoder.

pkg/ton/debug/decoders/ccip/router/router.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ var TLBs = lib.MustNewTLBMap([]interface{}{
1717
router.CCIPSend{},
1818
})
1919

20-
type decoder struct {
21-
payloadDecoders map[cldf.ContractType]lib.ContractDecoder
22-
}
20+
type decoder struct{}
2321

24-
func NewDecoder(payloadDecoders map[cldf.ContractType]lib.ContractDecoder) lib.ContractDecoder {
25-
return &decoder{payloadDecoders}
22+
func NewDecoder() lib.ContractDecoder {
23+
return &decoder{}
2624
}
2725

2826
// ContractType implements lib.ContractDecoder.

pkg/ton/debug/decoders/jetton/minter/jetton_minter.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ var TLBs = lib.MustNewTLBMap([]interface{}{
2222
minter.UpgradeMessage{},
2323
})
2424

25-
type decoder struct {
26-
payloadDecoders map[cldf.ContractType]lib.ContractDecoder
27-
}
25+
type decoder struct{}
2826

29-
func NewDecoder(payloadDecoders map[cldf.ContractType]lib.ContractDecoder) lib.ContractDecoder {
30-
return &decoder{payloadDecoders}
27+
func NewDecoder() lib.ContractDecoder {
28+
return &decoder{}
3129
}
3230

3331
// ContractType implements lib.ContractDecoder.

pkg/ton/debug/decoders/jetton/wallet/jetton_wallet.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ var TLBs = lib.MustNewTLBMap([]interface{}{
1919
wallet.TransferNotification{},
2020
})
2121

22-
type decoder struct {
23-
payloadDecoders map[cldf.ContractType]lib.ContractDecoder
24-
}
22+
type decoder struct{}
2523

26-
func NewDecoder(payloadDecoders map[cldf.ContractType]lib.ContractDecoder) lib.ContractDecoder {
27-
return &decoder{payloadDecoders}
24+
func NewDecoder() lib.ContractDecoder {
25+
return &decoder{}
2826
}
2927

3028
// ContractType implements lib.ContractDecoder.

pkg/ton/debug/lib/lib_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"testing"
77

88
"github.com/smartcontractkit/chainlink-ton/pkg/bindings/jetton/wallet"
9+
910
"github.com/xssnick/tonutils-go/address"
1011
"github.com/xssnick/tonutils-go/tlb"
1112
"github.com/xssnick/tonutils-go/tvm/cell"

0 commit comments

Comments
 (0)