git.delta.rocks / unique-network / refs/commits / e8fdadb89923

difftreelog

source

pallets/contracts/fixtures/check_default_rent_allowance.wat826 Bsourcehistory
1(module2	(import "seal0" "seal_rent_allowance" (func $seal_rent_allowance (param i32 i32)))3	(import "env" "memory" (memory 1 1))45	;; [0, 8) reserved for $seal_rent_allowance output67	;; [8, 16) length of the buffer8	(data (i32.const 8) "\08")910	;; [16, inf) zero initialized1112	(func $assert (param i32)13		(block $ok14			(br_if $ok15				(get_local 0)16			)17			(unreachable)18		)19	)2021	(func (export "call"))2223	(func (export "deploy")24		;; fill the buffer with the rent allowance.25		(call $seal_rent_allowance (i32.const 0) (i32.const 8))2627		;; assert len == 828		(call $assert29			(i32.eq30				(i32.load (i32.const 8))31				(i32.const 8)32			)33		)3435		;; assert that contents of the buffer is equal to <BalanceOf<T>>::max_value().36		(call $assert37			(i64.eq38				(i64.load (i32.const 0))39				(i64.const 0xFFFFFFFFFFFFFFFF)40			)41		)42	)43)