From 63434735216d93b1c079811ff461a82ccbe5b1ea Mon Sep 17 00:00:00 2001 From: Daniil Sedov Date: Sun, 17 Nov 2024 10:31:18 +0300 Subject: [PATCH] feat: apply suggestions from code review Co-authored-by: Novus Nota <68142933+novusnota@users.noreply.github.com> --- stdlib/std/cells.tact | 6 +++--- stdlib/std/math.tact | 2 +- stdlib/stdlib.fc | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stdlib/std/cells.tact b/stdlib/std/cells.tact index 176f75672..d14651bc1 100644 --- a/stdlib/std/cells.tact +++ b/stdlib/std/cells.tact @@ -66,7 +66,7 @@ asm extends fun refs(self: Builder): Int { BREFS } asm extends fun bits(self: Builder): Int { BBITS } -asm fun builderDepth(builder: Builder): Int { BDEPTH } +asm extends fun depth(self: Builder): Int { BDEPTH } // // Slice @@ -156,7 +156,7 @@ asm extends fun firstBits(self: Slice, len: Int): Slice { SDCUTFIRST } asm extends fun sliceLast(self: Slice, len: Int): Slice { SDCUTLAST } -asm fun sliceDepth(slice: Slice): Int { SDEPTH } +asm extends fun depth(self: Slice): Int { SDEPTH } // // Slice size @@ -214,5 +214,5 @@ asm fun computeDataSize(cell: Cell, maxCells: Int): DataSize { CDATASIZE TRIPLE asm fun computeSliceDataSize(slice: Slice, maxCells: Int): DataSize { SDATASIZE TRIPLE } -asm fun cellDepth(cell: Cell): Int { CDEPTH } +asm extends fun depth(self: Cell): Int { CDEPTH } diff --git a/stdlib/std/math.tact b/stdlib/std/math.tact index ed0fb36b5..0141d78d1 100644 --- a/stdlib/std/math.tact +++ b/stdlib/std/math.tact @@ -61,4 +61,4 @@ native pow(base: Int, exp: Int): Int; asm fun pow2(exp: Int): Int { POW2 } -asm fun sgn(x: Int): Int { SGN } +asm fun sign(x: Int): Int { SGN } diff --git a/stdlib/stdlib.fc b/stdlib/stdlib.fc index 0eda659de..3135b95d8 100644 --- a/stdlib/stdlib.fc +++ b/stdlib/stdlib.fc @@ -686,4 +686,4 @@ int get_simple_forward_fee(int workchain, int bits, int cells) asm(cells bits wo int get_original_fwd_fee(int workchain, int fwd_fee) asm(fwd_fee workchain) "GETORIGINALFWDFEE"; int my_storage_due() asm "DUEPAYMENT"; -tuple get_fee_cofigs() asm "UNPACKEDCONFIGTUPLE"; +tuple get_fee_configs() asm "UNPACKEDCONFIGTUPLE";