Commit 1f3125d
committed
refactor(svm): extract convert_and_transfer_in shared helper
Extracted amount conversion + plugin transfer_in into
`convert_and_transfer_in` on `HyperlaneSealevelToken<T>`. Both the
remote dispatch path and CC's same-chain local path now delegate to it.
Also fixed transfer_remote_to to return remote_amount so callers can
restore the original log messages that were lost in the prior commit.1 parent 7d97862 commit 1f3125d
2 files changed
Lines changed: 41 additions & 28 deletions
File tree
- rust/sealevel
- libraries/hyperlane-sealevel-token/src
- programs/hyperlane-sealevel-token-cross-collateral/src
Lines changed: 36 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
| 471 | + | |
481 | 472 | | |
482 | 473 | | |
483 | 474 | | |
484 | 475 | | |
485 | | - | |
| 476 | + | |
486 | 477 | | |
487 | 478 | | |
488 | 479 | | |
| |||
561 | 552 | | |
562 | 553 | | |
563 | 554 | | |
564 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
565 | 585 | | |
566 | 586 | | |
567 | 587 | | |
| |||
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
| 530 | + | |
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
| 543 | + | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
| |||
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
| 597 | + | |
605 | 598 | | |
606 | 599 | | |
607 | 600 | | |
608 | 601 | | |
609 | | - | |
| 602 | + | |
610 | 603 | | |
611 | 604 | | |
612 | 605 | | |
| |||
0 commit comments