Skip to content

Commit f8efb3e

Browse files
committed
refactor: separate static data
1 parent 7fd00f1 commit f8efb3e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const DEFAULT_GAS_WANTED = 10_000_000;
2+
3+
export const TRANSACTION_MESSAGE_SEND_OF_REGISTER = '200000000ugnot';

packages/adena-extension/src/services/transaction/message/vm/vm-call-users.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { TRANSACTION_MESSAGE_SEND_OF_REGISTER } from '@common/constants/tx.constant';
12
import { createMessageOfVmCall } from './vm';
23

34
export const createMessageOfVmRegister = (info: {
@@ -11,7 +12,7 @@ export const createMessageOfVmRegister = (info: {
1112
value: { caller: string; send: string; pkg_path: string; func: string; args: string[] };
1213
} => {
1314
const invitor = info.invitor ?? '';
14-
const send = info.send ?? '200000000ugnot';
15+
const send = info.send ?? TRANSACTION_MESSAGE_SEND_OF_REGISTER;
1516
return createMessageOfVmCall({
1617
caller: info.address,
1718
pkgPath: 'gno.land/r/users',

0 commit comments

Comments
 (0)