I’m comparatively new to Blockchain and XRPL.
What I’m attempting to do is:
I create a chilly pockets and concern a IOU.
I create a sizzling pockets and create trustline with chilly pockets with chilly pockets as issuer.
I make cost from chilly pockets to sizzling pockets
All the things works high-quality up to now.
Then I create a brand new pockets and set a trustline with chilly pockets as issuer.
I then attempt to make a transaction from sizzling pockets to the brand new pockets with chilly pockets as issuer. I get tecPATH_DRY
and a few instances tecPATH_PARTIAL
Account set for warm pockets
AccountSet(
account=pockets.tackle,
set_flag=AccountSetAsfFlag.ASF_REQUIRE_AUTH,
)
Account Set for chilly pockets
AccountSet(
account=pockets.tackle,
transfer_rate=transfer_rate,
tick_size=tick_size,
area=bytes.hex(area.encode("ASCII")),
set_flag=AccountSetAsfFlag.ASF_DEFAULT_RIPPLE,
)
Trustline
TrustSet(
account=requester_wallet.tackle,
limit_amount=IssuedCurrencyAmount(
foreign money=currency_symbol,
issuer=cold_wallet.tackle,
worth=trust_limit,
)
)
Cost from sizzling to purchaser/new pockets
Cost(
account=hot_wallet.tackle,
vacation spot=buyer_wallet.tackle,
quantity=IssuedCurrencyAmount(
foreign money=currency_code,
issuer=cold_wallet.tackle, # Chilly pockets is the issuer of the foreign money
worth=str(amount)
)
)
I’ve verified:
- Trustline between cold and hot exists with sufficient restrict
- Trustline between sizzling and purchaser exists with sufficient restrict
- Scorching pockets have sufficient credit score.
Can somebody please level out what am I lacking right here?