Skip to content

Commit

Permalink
hard code jkl address and typeURL for filetree msg. Debugging only
Browse files Browse the repository at this point in the history
  • Loading branch information
BiPhan4 committed Jan 31, 2024
1 parent d1f3ba2 commit 2cdafc0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 18 deletions.
7 changes: 5 additions & 2 deletions e2e/interchaintest/filetree_post_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ func (s *ContractTestSuite) TestIcaContractExecutionTestWithFiletree() {

s.Run(fmt.Sprintf("TestSendCustomIcaMesssagesSuccess-%s", encoding), func() {
filetreeMsg := &filetreetypes.MsgPostKey{
Creator: wasmdUser.FormattedAddress(), // This will soon be the contract address
Creator: "jkl1yzajxf83p0zlea6ldn67ncqzs6e7ar85q3452g", // we're just hard coding this temporarily for debugging purposes

// This will soon be the contract address
// This has to be the jkl address that's created by the controller (this contract)
// When the channel is opened
// When the channel is opened. If it's not this address, the transaction should error
// Because the controller account should only be allowed to execute msgs for its host pair
Key: "Hey it's Bi from the outpost on another chain. We reached filetree!!! <3",
}

Expand Down
28 changes: 14 additions & 14 deletions e2e/interchaintest/logs/test.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
INFO: 2024/01/31 13:40:20 Wasmd First light client is
INFO: 2024/01/31 13:40:20 [
INFO: 2024/01/31 14:06:00 Wasmd First light client is
INFO: 2024/01/31 14:06:00 [
{
"client_id": "07-tendermint-0",
"client_state": {
Expand All @@ -13,20 +13,20 @@ INFO: 2024/01/31 13:40:20 [
}
}
]
INFO: 2024/01/31 13:40:20 Wasmd Second light client is
INFO: 2024/01/31 13:40:20 null
INFO: 2024/01/31 13:40:21 jackal first light client is
INFO: 2024/01/31 13:40:21 [
INFO: 2024/01/31 14:06:00 Wasmd Second light client is
INFO: 2024/01/31 14:06:00 null
INFO: 2024/01/31 14:06:01 jackal first light client is
INFO: 2024/01/31 14:06:01 [
{
"client_id": "07-tendermint-0",
"client_state": {
"chain_id": "wasmd-1"
}
}
]
INFO: 2024/01/31 13:40:21 jackal second light client is
INFO: 2024/01/31 13:40:21 null
INFO: 2024/01/31 13:40:49 {
INFO: 2024/01/31 14:06:01 jackal second light client is
INFO: 2024/01/31 14:06:01 null
INFO: 2024/01/31 14:06:25 {
"id": "connection-0",
"client_id": "07-tendermint-0",
"versions": [
Expand All @@ -48,7 +48,7 @@ INFO: 2024/01/31 13:40:49 {
},
"delay_period": "0"
}
INFO: 2024/01/31 13:40:49 {
INFO: 2024/01/31 14:06:25 {
"id": "connection-localhost",
"client_id": "09-localhost",
"versions": [
Expand All @@ -70,8 +70,8 @@ INFO: 2024/01/31 13:40:49 {
},
"delay_period": "0"
}
INFO: 2024/01/31 13:40:49 The first canined connections are:
INFO: 2024/01/31 13:40:49 {
INFO: 2024/01/31 14:06:25 The first canined connections are:
INFO: 2024/01/31 14:06:25 {
"id": "connection-0",
"client_id": "07-tendermint-0",
"versions": [
Expand All @@ -93,5 +93,5 @@ INFO: 2024/01/31 13:40:49 {
},
"delay_period": "0"
}
INFO: 2024/01/31 13:42:03 initial balance is: 1000000000
INFO: 2024/01/31 13:42:03 Executing custom ICA message now
INFO: 2024/01/31 14:07:39 initial balance is: 1000000000
INFO: 2024/01/31 14:07:39 Executing custom ICA message now
4 changes: 2 additions & 2 deletions e2e/interchaintest/send_with_protobuf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ func (s *ContractTestSuite) TestIcaContractExecutionTestWithProtobuf() {
logger.LogInfo("Executing custom ICA message now")
fmt.Println("Executing custom ICA message now")

// NOTE: Stargate API does not seem to be working for proposalMsg and depositMsg
// Not even the v0.4.2 version is working
// stargate API v0.4.2 works for proposalMsg executing on canined
// still does not work for filetree at this time.

sendStargateMsg := testtypes.NewExecuteMsg_SendCosmosMsgs_FromProto(
[]proto.Message{proposalMsg, depositMsg}, nil, nil,
Expand Down
2 changes: 2 additions & 0 deletions e2e/interchaintest/types/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func NewExecuteMsg_SendCosmosMsgs_FromProto(msgs []proto.Message, memo *string,
panic(err)
}

protoAny.TypeUrl = "canine_chain.filetree.MsgPostKey"

cosmosMsgs[i] = ContractCosmosMsg{
Stargate: &StargateCosmosMsg{
TypeUrl: protoAny.TypeUrl,
Expand Down

0 comments on commit 2cdafc0

Please sign in to comment.