Skip to content

Commit e04b936

Browse files
committed
new bounce test
1 parent 47a61b6 commit e04b936

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

abi/generated_test.go

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,6 +2439,40 @@ func TestMessageDecoder(t *testing.T) {
24392439
},
24402440
},
24412441
},
2442+
{
2443+
name: "new_bounce_flag_1",
2444+
boc: "b5ee9c720101030100a3000213fffffffe00ffffffff40010200ff000000007364676c6b647368676a736168676b6a61736468676a6b647368676b6a7368616a6b676864736b6a6768736b6a6468676b6a736468676a6b647368676b6a736864676a68736468736a6b68676b6a736468677368646b6a67686473676a6b6873646b6a676873646b6a68676b6a736867646a6b7364686b6a676873650021405f5e10000001225ea9938c134733ab6c",
2445+
wantOpName: BounceV2MsgOp,
2446+
wantValue: BounceV2MsgBody{
2447+
OriginalBody: tlb.Any(mustHexToCell("b5ee9c720101010100820000ff000000007364676c6b647368676a736168676b6a61736468676a6b647368676b6a7368616a6b676864736b6a6768736b6a6468676b6a736468676a6b647368676b6a736864676a68736468736a6b68676b6a736468677368646b6a67686473676a6b6873646b6a676873646b6a68676b6a736867646a6b7364686b6a67687365")),
2448+
OriginalInfo: NewBounceOriginalInfo{
2449+
Value: tlb.CurrencyCollection{
2450+
Grams: tlb.Grams(100000000),
2451+
},
2452+
CreatedLt: 39908118000002,
2453+
CreatedAt: 1759933805,
2454+
},
2455+
BouncedByPhase: 0,
2456+
ExitCode: -1,
2457+
},
2458+
},
2459+
{
2460+
name: "new_bounce_flag_3",
2461+
boc: "b5ee9c72010103010054000213fffffffe00ffffffff40010200620000000068692120686f70652069742077696c6c20626520656e6f75676820666f7220627579696e6720612079616368740021405f5e10000001225d27569813473370b4",
2462+
wantOpName: BounceV2MsgOp,
2463+
wantValue: BounceV2MsgBody{
2464+
OriginalBody: tlb.Any(mustHexToCell("b5ee9c720101010100330000620000000068692120686f70652069742077696c6c20626520656e6f75676820666f7220627579696e672061207961636874")),
2465+
OriginalInfo: NewBounceOriginalInfo{
2466+
Value: tlb.CurrencyCollection{
2467+
Grams: tlb.Grams(100000000),
2468+
},
2469+
CreatedLt: 39907308000002,
2470+
CreatedAt: 1759931926,
2471+
},
2472+
BouncedByPhase: 0,
2473+
ExitCode: -1,
2474+
},
2475+
},
24422476
}
24432477
for _, tt := range tests {
24442478
t.Run(tt.name, func(t *testing.T) {

0 commit comments

Comments
 (0)