Skip to content

Commit 9025012

Browse files
committed
fix past test
1 parent 2df2341 commit 9025012

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

examples/oft-evm-move-adapters/sources/oft_implementation/move_oft_adapter.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module oft::move_oft_adapter {
5353
public(friend) fun credit(
5454
to: address,
5555
amount_ld: u64,
56-
src_eid: u32,
56+
_src_eid: u32,
5757
lz_receive_value: Option<FungibleAsset>,
5858
): u64 acquires OftImpl, PauserStore {
5959
// Global inflow pause gate

examples/oft-evm-move-adapters/tests/oft_using_move_oft_adapter_tests.move

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ module oft::oft_using_move_oft_adapter_tests {
257257
}
258258

259259
#[test]
260+
#[expected_failure(abort_code = oft::oft_impl_config::EEXCEEDED_RATE_LIMIT)]
260261
fun test_send_rate_limit_netted_by_receive() {
261262
let mint_ref = setup(SRC_EID, DST_EID);
262263
set_rate_limit(&create_signer_for_test(@oft_admin), DST_EID, 19_000_000_000, 10);
@@ -316,7 +317,8 @@ module oft::oft_using_move_oft_adapter_tests {
316317
vector[],
317318
);
318319

319-
// Succeeds: consumes 15_000_000_000 of 19_000_000_000 in flight
320+
// Modified behavior on move_oft_adapter.move, send_withdraw should NOT be offset by lz_receive.
321+
// Succeeds: consumes 15_000_000_000 of 19_000_000_000 in flight
320322
send_withdraw(alice, DST_EID, bob, amount, amount, vector[], vector[], vector[], 0, 0);
321323
}
322324

0 commit comments

Comments
 (0)