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

experiment/transfer #19

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

miguelemosreverte
Copy link

Alo!

Trying to make an experiment about use of transfer, preferably signed transfers.

But I am encountering issues, to in order to escalate the consultation to you the code-owners I provide here a fork that replicates the issue at hand.

To reproduce the issue:

docker-compose up -d 
cargo run --package iroha_2_examples --example tutorial-6-transfer
/*
Expected output: 
Asset data: Asset { id: time##user@unreasonable, value: Fixed(Fixed(12.34)) }
Asset data: Asset { id: time##user2@unreasonable, value: Fixed(Fixed(12.34)) }
Error: Transaction was rejected

Caused by:
   0: Validation failed
   1: Operation is not permitted: TransferBox { source_id: AssetId(time##user@unreasonable), object: 1.0_fx, destination_id: AssetId(time##user2@unreasonable) }: Unsupported operation

Location:
    /rustc/f7ca9df69549470541fbf542f87a03eb9ed024b6/library/core/src/convert/mod.rs:716:9


*/

Question is, would this serve as inspiration/conversation starter for you to provide a working example?

miguelemosreverte and others added 4 commits October 23, 2023 02:06
To run you probably will need to have an instance of Iroha online running local, preferably with docker-compose.yml 
/*
Expected output: 
Asset data: Asset { id: time##user@unreasonable, value: Fixed(Fixed(12.34)) }
Asset data: Asset { id: time##user2@unreasonable, value: Fixed(Fixed(12.34)) }
Error: Transaction was rejected

Caused by:
   0: Validation failed
   1: Operation is not permitted: TransferBox { source_id: AssetId(time##user@unreasonable), object: 1.0_fx, destination_id: AssetId(time##user2@unreasonable) }: Unsupported operation

Location:
    /rustc/f7ca9df69549470541fbf542f87a03eb9ed024b6/library/core/src/convert/mod.rs:716:9


*/

Signed-off-by: Miguel Lemos <[email protected]>
Signed-off-by: Miguel Lemos <[email protected]>
Signed-off-by: Miguel Lemos <[email protected]>
@0x009922
Copy link
Contributor

0x009922 commented Dec 4, 2023

Hi @miguelemosreverte!

Sorry for late notice of your PR. This repo is not developed enough yet, and the examples are just drafts!

Anyway, it is interesting to see that this transaction is not supported. What version of Iroha do you use?

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