fix - ScanParams should be return this reference

build pattern for chain code style