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

Make some checktx logs debug #73

Merged
merged 1 commit into from
Feb 27, 2023
Merged

Make some checktx logs debug #73

merged 1 commit into from
Feb 27, 2023

Conversation

philipsu522
Copy link
Contributor

Describe your changes and provide context

These log messages are pretty noisy, we can set them to debug

Testing performed to validate your change

@philipsu522 philipsu522 requested a review from udpatil February 27, 2023 18:56
@philipsu522 philipsu522 merged commit 8699c1f into main Feb 27, 2023
Timwood0x10 pushed a commit to Timwood0x10/sei-tendermint that referenced this pull request Jun 7, 2023
## Describe your changes and provide context
Allow Wasm contract owner to specify a selector when registering wasm
dependencies so that fine-grained resource ID can be populated during
runtime. For example, if a contract has an execute endpoint `send` whose
payload involves a `destination` address which will result in the
contract writing to a corresponding KV entry in bank store, the owner
can specify the dependency as:
```json
{
  ...
  "access_ops": [
    ...
    {
      "operation": {
        "access_type": "WRITE",
        "resource_type": "KV_BANK",
        "identifier_template": "balances/%s"
      },
      "selector_type": "JQ",
      "selector": ".send.destination"
    }
    ...
  ]
}
```
When someone sends an execute message `{"send":{"destination":"bob"}}`
to this contract, the identifier would evaluate to `balances/bob` during
runtime.
## Testing performed to validate your change
unit test
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