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

bug: Contract call creation uses MultisigUpdateRequest event type #226

Open
cbrit opened this issue Sep 16, 2023 · 0 comments
Open

bug: Contract call creation uses MultisigUpdateRequest event type #226

cbrit opened this issue Sep 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@cbrit
Copy link
Member

cbrit commented Sep 16, 2023

Need an event type specifically for outgoing contract calls.

Current event emitted:

ctx.EventManager().EmitEvent(
    sdk.NewEvent(
        types.EventTypeMultisigUpdateRequest,
        sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName),
        sdk.NewAttribute(types.AttributeKeyContract, k.getBridgeContractAddress(ctx)),
        sdk.NewAttribute(types.AttributeKeyBridgeChainID, strconv.Itoa(int(k.getBridgeChainID(ctx)))),
        sdk.NewAttribute(types.AttributeKeyContractCallInvalidationNonce, fmt.Sprint(invalidationNonce)),
        sdk.NewAttribute(types.AttributeKeyContractCallInvalidationScope, fmt.Sprint(invalidationScope)),
        sdk.NewAttribute(types.AttributeKeyContractCallAddress, fmt.Sprint(address.String())),
        sdk.NewAttribute(types.AttributeKeyContractCallPayload, string(payload)),
        sdk.NewAttribute(types.AttributeKeyContractCallTokens, strings.Join(tokenString, "|")),
        sdk.NewAttribute(types.AttributeKeyContractCallFees, strings.Join(feeString, "|")),
        sdk.NewAttribute(types.AttributeKeyEthTxTimeout, strconv.FormatUint(params.TargetEthTxTimeout, 10)),
    ),
)
@cbrit cbrit added the bug Something isn't working label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant