Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core, apps): 'PacketDataProvider' interface added and implemented #4199

Merged
merged 18 commits into from
Aug 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style(transfer_test): changed test case parameter name
  • Loading branch information
srdtrk committed Aug 1, 2023
commit fc5e953da43357496609b12c12d0a1442f15b981
8 changes: 4 additions & 4 deletions modules/apps/transfer/types/packet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ func TestFungibleTokenPacketDataValidateBasic(t *testing.T) {

func (suite *TypesTestSuite) TestPacketDataProvider() {
testCases := []struct {
name string
packetData types.FungibleTokenPacketData
expAdditionalData interface{}
name string
packetData types.FungibleTokenPacketData
expCustomData interface{}
}{
{
"success: src_callback key in memo",
Expand Down Expand Up @@ -115,6 +115,6 @@ func (suite *TypesTestSuite) TestPacketDataProvider() {

for _, tc := range testCases {
customData := tc.packetData.GetCustomPacketData("src_callback")
suite.Require().Equal(tc.expAdditionalData, customData)
suite.Require().Equal(tc.expCustomData, customData)
}
}