Skip to content

Commit

Permalink
Remove hex-encoded result attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Aug 9, 2021
1 parent be3fcf1 commit 79f3fad
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions EVENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,12 @@ sdk.NewEvent(
"instantiate",
sdk.NewAttribute("code_id", fmt.Sprintf("%d", msg.CodeID)),
sdk.NewAttribute("_contract_addr", contractAddr.String()),
sdk.NewAttribute("result", hex.EncodeToString(data)),
)

// Execute Contract
sdk.NewEvent(
"execute",
sdk.NewAttribute("_contract_addr", contractAddr.String()),
sdk.NewAttribute("result", hex.EncodeToString(data)),
)

// Migrate Contract
Expand All @@ -183,7 +181,6 @@ sdk.NewEvent(
// Note: this is the new code id that is being migrated to
sdk.NewAttribute("code_id", fmt.Sprintf("%d", msg.CodeID)),
sdk.NewAttribute("_contract_addr", contractAddr.String()),
sdk.NewAttribute("result", hex.EncodeToString(data)),
)

// Set new admin
Expand Down Expand Up @@ -339,7 +336,6 @@ sdk.NewEvent(
sdk.NewEvent(
"execute",
sdk.NewAttribute("_contract_addr", contractAddr.String()),
sdk.NewAttribute("result", hex.EncodeToString(data)),
),
sdk.NewEvent(
"wasm",
Expand All @@ -352,7 +348,6 @@ sdk.NewEvent(
"instantiate",
sdk.NewAttribute("code_id", fmt.Sprintf("%d", msg.CodeID)),
sdk.NewAttribute("_contract_addr", newContract.String()),
sdk.NewAttribute("result", hex.EncodeToString(initData)),
)
// didn't emit any attributes, but one event
sdk.NewEvent(
Expand Down Expand Up @@ -392,7 +387,6 @@ sdk.NewEvent(
"instantiate",
sdk.NewAttribute("code_id", fmt.Sprintf("%d", msg.CodeID)),
sdk.NewAttribute("_contract_addr", newContract.String()),
sdk.NewAttribute("result", hex.EncodeToString(initData)),
)
sdk.NewEvent(
"wasm-custom",
Expand Down

0 comments on commit 79f3fad

Please sign in to comment.