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

difftreelog

source

pallets/contracts/fixtures/event_size.wat841 Bsourcehistory
1(module2	(import "seal0" "seal_deposit_event" (func $seal_deposit_event (param i32 i32 i32 i32)))3	(import "seal0" "seal_input" (func $seal_input (param i32 i32)))4	(import "env" "memory" (memory 16 16))56	;; [0, 4) size of the input buffer7	(data (i32.const 0) "\04")89	(func $assert (param i32)10		(block $ok11			(br_if $ok12				(get_local 0)13			)14			(unreachable)15		)16	)1718	(func (export "call")19		(call $seal_input (i32.const 4) (i32.const 0))2021		;; assert input size == 422		(call $assert23			(i32.eq24				(i32.load (i32.const 0))25				(i32.const 4)26			)27		)2829		;; place a garbage value in storage, the size of which is specified by the call input.30		(call $seal_deposit_event31			(i32.const 0) ;; topics_ptr32			(i32.const 0) ;; topics_len33			(i32.const 0) ;; data_ptr34			(i32.load (i32.const 4)) ;; data_len35		)36	)3738	(func (export "deploy"))39)