From efca754d461a1be5d3eefbda8ad30d09b180d88d Mon Sep 17 00:00:00 2001 From: gterzian <2792687+gterzian@users.noreply.github.com> Date: Thu, 17 Nov 2022 18:12:57 +0800 Subject: [PATCH] replace gas price with fee --- assembly/env/env.ts | 2 +- assembly/std/index.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assembly/env/env.ts b/assembly/env/env.ts index 1e16306d..b2f414b9 100644 --- a/assembly/env/env.ts +++ b/assembly/env/env.ts @@ -138,7 +138,7 @@ export namespace env { validityEndPeriod: u64, validityEndThread: u8, maxGas: u64, - gasPrice: u64, + rawFee: u64, coins: u64, data: string, ): void; diff --git a/assembly/std/index.ts b/assembly/std/index.ts index 070b4bf6..e7150ddb 100644 --- a/assembly/std/index.ts +++ b/assembly/std/index.ts @@ -235,7 +235,7 @@ export function unsafeRandom(): i64 { * @param {u64} validityEndPeriod - Period of the validity end slot * @param {u8} validityEndThread - Thread of the validity end slot * @param {u64} maxGas - Maximum gas for the message execution - * @param {u64} gasPrice - Price of one gas unit + * @param {u64} rawFee - Fee to be paid for message execution * @param {u64} coins - Coins of the sender * @param {string} msg - serialized data */ @@ -247,7 +247,7 @@ export function sendMessage( validityEndPeriod: u64, validityEndThread: u8, maxGas: u64, - gasPrice: u64, + rawFee: u64, coins: u64, msg: string, ): void { @@ -259,7 +259,7 @@ export function sendMessage( validityEndPeriod, validityEndThread, maxGas, - gasPrice, + rawFee, coins, msg, );