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: Implement Call by tx and Call by Query #37

Closed
wants to merge 3 commits into from
Closed

feat: Implement Call by tx and Call by Query #37

wants to merge 3 commits into from

Conversation

Kynea0b
Copy link

@Kynea0b Kynea0b commented Apr 24, 2023

Description

This PR is part of this issue.
Finschia/cosmwasm#252

This pr uses vm.CallCallablePoint fun of the wasmvm pr. So this updated after it is merged.

Checklist:

@Kynea0b Kynea0b self-assigned this Apr 24, 2023
@@ -449,6 +450,60 @@
return data, nil
}

func (k Keeper) executeCallablePoint(ctx sdk.Context, contractAddress sdk.AccAddress, argsEv []byte, callablePointName string) ([]byte, error) {
defer func(begin time.Time) { k.metrics.ExecuteElapsedTimes.Observe(time.Since(begin).Seconds()) }(time.Now())

Check warning

Code scanning / CodeQL

Calling the system time

Calling the system time may be a possible source of non-determinism
@Kynea0b Kynea0b marked this pull request as ready for review April 24, 2023 05:00
Comment on lines +24 to +25
WasmModuleEventTypeForCallablePoint = "wasm-callable_point"
CustomContractEventPrefixForCallablePoint = "wasm-callable_point-"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about moving the two lines up to match the convention of the existing code?

@Kynea0b Kynea0b marked this pull request as draft April 25, 2023 04:08
@Kynea0b Kynea0b changed the title feat: Implement CallCallablePoint Function to wasm Keeper feat: Implement Call by tx or Call by Query May 2, 2023
@Kynea0b Kynea0b changed the title feat: Implement Call by tx or Call by Query feat: Implement Call by tx and Call by Query May 2, 2023
@Kynea0b Kynea0b closed this by deleting the head repository Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants