Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

add payer support for kv table #942

Merged
merged 2 commits into from
Aug 10, 2020
Merged

Conversation

huangminghuang
Copy link
Contributor

Change Description

Allow application developers flexibility to choose who pays for resources.

API Changes

  • API Changes

kv_table::put() has an additional optional parameter payer

Documentation Additions

  • Documentation Additions

Comment on lines 891 to 892
void put(const T& value) {
put(value, kv_table_base::contract_name);
Copy link
Contributor

Choose a reason for hiding this comment

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

My preference would be to have KV mirror multi-index and not provide a default like this and instead always require the payer to be specified. The contract can use get_self() to pay for the resources if they choose.

@jeffreyssmith2nd jeffreyssmith2nd merged commit 5de9fcc into develop Aug 10, 2020
@jeffreyssmith2nd jeffreyssmith2nd deleted the huangminghuang/kv-pay branch August 10, 2020 14:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants