Skip to content

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 <miguellemos95@gmail.com>
Signed-off-by: Miguel Lemos <miguellemos95@gmail.com>
Signed-off-by: Miguel Lemos <miguellemos95@gmail.com>
@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