I’m comparatively new to Blockchain and XRPL.
What I’m making an attempt to do is:
I create a chilly pockets and situation a IOU.
I create a scorching pockets and create trustline with chilly pockets with chilly pockets as issuer.
I make cost from chilly pockets to scorching pockets
Every part works high quality to this point.
Then I create a brand new pockets and set a trustline with chilly pockets as issuer.
I then attempt to make a transaction from scorching pockets to the brand new pockets with chilly pockets as issuer. I get tecPATH_DRY
and a few instances tecPATH_PARTIAL
Account set for decent pockets
AccountSet(
account=pockets.deal with,
set_flag=AccountSetAsfFlag.ASF_REQUIRE_AUTH,
)
Account Set for chilly pockets
AccountSet(
account=pockets.deal with,
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.deal with,
limit_amount=IssuedCurrencyAmount(
forex=currency_symbol,
issuer=cold_wallet.deal with,
worth=trust_limit,
)
)
Fee from scorching to purchaser/new pockets
Fee(
account=hot_wallet.deal with,
vacation spot=buyer_wallet.deal with,
quantity=IssuedCurrencyAmount(
forex=currency_code,
issuer=cold_wallet.deal with, # Chilly pockets is the issuer of the forex
worth=str(amount)
)
)
I’ve verified:
- Trustline between cold and warm exists with sufficient restrict
- Trustline between scorching and purchaser exists with sufficient restrict
- Scorching pockets have sufficient credit score.
Can somebody please level out what am I lacking right here?